Skip to content
Snippets Groups Projects
Commit e61cf6c000e5 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[pkg] fix bug for NO_SETUPTOOLS

parent 6a2ad70b6c2d
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,8 @@
# install-layout option was introduced in 2.5.3-1~exp1
elif sys.version_info < (2, 5, 4) and '--install-layout=deb' in sys.argv:
sys.argv.remove('--install-layout=deb')
cmdclass = {'install_lib': MyInstallLib}
if USE_SETUPTOOLS:
kwargs['install_requires'] = install_requires
kwargs['dependency_links'] = dependency_links
kwargs['zip_safe'] = False
......@@ -177,7 +178,9 @@
if USE_SETUPTOOLS:
kwargs['install_requires'] = install_requires
kwargs['dependency_links'] = dependency_links
kwargs['zip_safe'] = False
cmdclass['install_data'] = MyInstallData
return setup(name = distname,
version = version,
license = license,
......@@ -189,8 +192,7 @@
scripts = ensure_scripts(scripts),
data_files = data_files,
ext_modules = ext_modules,
cmdclass = {'install_lib': MyInstallLib,
'install_data':MyInstallData},
cmdclass = cmdclass,
**kwargs
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment