|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 |
|
4 | | -# distutils build script |
5 | 4 | # To install fuse-python, run 'python setup.py install' |
6 | 5 |
|
7 | 6 | # This setup.py based on that of shout-python (py bindings for libshout, |
8 | 7 | # part of the icecast project, http://svn.xiph.org/icecast/trunk/shout-python) |
9 | 8 |
|
10 | 9 | try: |
11 | 10 | from setuptools import setup |
12 | | - from setuptools.dist import Distribution |
13 | 11 | except ImportError: |
14 | 12 | from distutils.core import setup |
15 | | - from distutils.dist import Distribution |
16 | 13 | from distutils.core import Extension |
17 | 14 | import os |
18 | 15 | import sys |
|
33 | 30 | "Programming Language :: Python :: 3.6", |
34 | 31 | "Topic :: System :: Filesystems" ] |
35 | 32 |
|
36 | | -class MyDistribution(Distribution): |
37 | | - """ |
38 | | - Obnoxious hack to enforce the packager to generate |
39 | | - the to-be-generated files |
40 | | - """ |
41 | | - |
42 | | -# def run_command(self, command): |
43 | | -# if command == 'sdist': |
44 | | -# for f in ('Changelog', 'README.new_fusepy_api.html'): |
45 | | -# if not os.path.exists(f): |
46 | | -# raise RuntimeError('file ' + repr(f) + \ |
47 | | -# " doesn't exist, please generate it before creating a source distribution") |
48 | | - |
49 | | -# return Distribution.run_command(self, command) |
50 | | - |
51 | | - |
52 | 33 | # write default fuse.pc path into environment if PKG_CONFIG_PATH is unset |
53 | 34 | #if not os.environ.has_key('PKG_CONFIG_PATH'): |
54 | 35 | # os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig' |
@@ -120,5 +101,4 @@ def setup(**kwargs): |
120 | 101 | maintainer_email = 'sdelafond@gmail.com', |
121 | 102 | ext_modules = [fusemodule], |
122 | 103 | packages = ["fuseparts"], |
123 | | - py_modules=["fuse"], |
124 | | - distclass = MyDistribution) |
| 104 | + py_modules=["fuse"]) |
0 commit comments