diff options
author | SÅ‚awomir Ehlert <slafs.e@gmail.com> | 2018-05-30 15:18:13 +0200 |
---|---|---|
committer | Omer Katz <omer.drow@gmail.com> | 2018-05-30 16:18:13 +0300 |
commit | 25cafc4f5f506aefb56d5e48521822d1a0450e22 (patch) | |
tree | 5b61de214cb74c8e232640b210fb3d89dccf7f03 /setup.py | |
parent | e8e92af89e3a86d4e4ef5d662e5becf2e1bc94ff (diff) | |
download | kombu-25cafc4f5f506aefb56d5e48521822d1a0450e22.tar.gz |
Remove data_files from setup.py (#882)
Fixes #881
Also add some blank lines for pep-8 compatibility
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -31,6 +31,7 @@ def add_default(m): def add_doc(m): return (('doc', m.groups()[0]),) + pats = {re_meta: add_default, re_doc: add_doc} here = os.path.abspath(os.path.dirname(__file__)) meta_fh = open(os.path.join(here, 'kombu/__init__.py')) @@ -47,12 +48,6 @@ finally: meta_fh.close() # -- -data_files = [] -root_dir = os.path.dirname(__file__) -if root_dir != '': - os.chdir(root_dir) -src_dir = 'kombu' - def fullsplit(path, result=None): if result is None: @@ -68,17 +63,6 @@ def fullsplit(path, result=None): for scheme in list(INSTALL_SCHEMES.values()): scheme['data'] = scheme['purelib'] -for dirpath, dirnames, filenames in os.walk(src_dir): - # Ignore dirnames that start with '.' - for i, dirname in enumerate(dirnames): - if dirname.startswith('.'): - del dirnames[i] - for filename in filenames: - if not filename.endswith('.py'): - data_files.append( - [dirpath, [os.path.join(dirpath, f) for f in filenames]], - ) - if os.path.exists('README.rst'): long_description = codecs.open('README.rst', 'r', 'utf-8').read() else: @@ -117,6 +101,7 @@ class pytest(setuptools.command.test.test): import pytest sys.exit(pytest.main(self.pytest_args)) + setup( name='kombu', packages=setuptools.find_packages(exclude=['t', 't.*']), @@ -128,7 +113,6 @@ setup( author_email=meta['contact'], url=meta['homepage'], platforms=['any'], - data_files=data_files, zip_safe=False, license='BSD', cmdclass={'test': pytest}, |