summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSÅ‚awomir Ehlert <slafs.e@gmail.com>2018-05-30 15:18:13 +0200
committerOmer Katz <omer.drow@gmail.com>2018-05-30 16:18:13 +0300
commit25cafc4f5f506aefb56d5e48521822d1a0450e22 (patch)
tree5b61de214cb74c8e232640b210fb3d89dccf7f03 /setup.py
parente8e92af89e3a86d4e4ef5d662e5becf2e1bc94ff (diff)
downloadkombu-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.py20
1 files changed, 2 insertions, 18 deletions
diff --git a/setup.py b/setup.py
index d0e3ff3a..0e5c9e6b 100644
--- a/setup.py
+++ b/setup.py
@@ -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},