Skip to content

Commit 3b541a7

Browse files
authored
Merge pull request #22 from abitrolly/patch-1
Clean up unused Distribution sublcass
2 parents de8cd6b + c4086a1 commit 3b541a7

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

setup.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
# distutils build script
54
# To install fuse-python, run 'python setup.py install'
65

76
# This setup.py based on that of shout-python (py bindings for libshout,
87
# part of the icecast project, http://svn.xiph.org/icecast/trunk/shout-python)
98

109
try:
1110
from setuptools import setup
12-
from setuptools.dist import Distribution
1311
except ImportError:
1412
from distutils.core import setup
15-
from distutils.dist import Distribution
1613
from distutils.core import Extension
1714
import os
1815
import sys
@@ -33,22 +30,6 @@
3330
"Programming Language :: Python :: 3.6",
3431
"Topic :: System :: Filesystems" ]
3532

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-
5233
# write default fuse.pc path into environment if PKG_CONFIG_PATH is unset
5334
#if not os.environ.has_key('PKG_CONFIG_PATH'):
5435
# os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig'
@@ -120,5 +101,4 @@ def setup(**kwargs):
120101
maintainer_email = 'sdelafond@gmail.com',
121102
ext_modules = [fusemodule],
122103
packages = ["fuseparts"],
123-
py_modules=["fuse"],
124-
distclass = MyDistribution)
104+
py_modules=["fuse"])

0 commit comments

Comments
 (0)