[pkg] Make it clearer which entries of __pkginfo__ are actually used
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 08 Jun 2016 22:49:21 +0200
changeset 11449 ea5299828d68
parent 11448 f79c6894381f
child 11450 c7296e06e74e
[pkg] Make it clearer which entries of __pkginfo__ are actually used
setup.py
--- a/setup.py	Tue Jul 12 15:30:07 2016 +0200
+++ b/setup.py	Wed Jun 08 22:49:21 2016 +0200
@@ -56,12 +56,11 @@
 install_requires = [("%s %s" % (d, v and v or "")).strip()
                    for d, v in requires.items()]
 
-distname = __pkginfo__.get('distname', modname)
-scripts = __pkginfo__.get('scripts', ())
-include_dirs = __pkginfo__.get('include_dirs', ())
-data_files = __pkginfo__.get('data_files', None)
-ext_modules = __pkginfo__.get('ext_modules', None)
-package_data = __pkginfo__.get('package_data', {})
+distname = __pkginfo__['distname']
+scripts = __pkginfo__['scripts']
+include_dirs = __pkginfo__['include_dirs']
+data_files = __pkginfo__['data_files']
+package_data = __pkginfo__['package_data']
 
 BASE_BLACKLIST = ('CVS', 'dist', 'build', '__buildlog')
 IGNORED_EXTENSIONS = ('.pyc', '.pyo', '.elc')
@@ -211,7 +210,6 @@
                  description=description, long_description=long_description,
                  author=author, author_email=author_email,
                  scripts=ensure_scripts(scripts), data_files=data_files,
-                 ext_modules=ext_modules,
                  cmdclass={'install_lib': MyInstallLib,
                            'install_data': MyInstallData},
                  **kwargs