##// END OF EJS Templates
'install' depends on setuptools on Windows
MinRK -
Show More
@@ -198,10 +198,18 b' data_files = find_data_files()'
198
198
199 # For some commands, use setuptools. Note that we do NOT list install here!
199 # For some commands, use setuptools. Note that we do NOT list install here!
200 # If you want a setuptools-enhanced install, just run 'setupegg.py install'
200 # If you want a setuptools-enhanced install, just run 'setupegg.py install'
201 if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
201 needs_setuptools = set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
202 'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
202 'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
203 'build_sphinx', 'egg_info', 'easy_install', 'upload',
203 'build_sphinx', 'egg_info', 'easy_install', 'upload',
204 )).intersection(sys.argv)) > 0:
204 ))
205 if sys.platform == 'win32':
206 # Depend on setuptools for install on *Windows only*
207 # If we get script-installation working without setuptools,
208 # then we can back off, but until then use it.
209 # See Issue #369 on GitHub for more
210 needs_setuptools.add('install')
211
212 if len(needs_setuptools.intersection(sys.argv)) > 0:
205 import setuptools
213 import setuptools
206
214
207 # This dict is used for passing extra arguments that are setuptools
215 # This dict is used for passing extra arguments that are setuptools
General Comments 0
You need to be logged in to leave comments. Login now