##// END OF EJS Templates
Code style cleanups
Thomas Kluyver -
Show More
@@ -19,6 +19,7 b' requires utilities which are not available under Windows."""'
19
19
20 from __future__ import print_function
20 from __future__ import print_function
21
21
22 import os
22 import sys
23 import sys
23
24
24 # **Python version check**
25 # **Python version check**
@@ -55,15 +56,6 b' Python {py} detected.'
55
56
56 # At least we're on the python version we need, move on.
57 # At least we're on the python version we need, move on.
57
58
58 #-------------------------------------------------------------------------------
59 # Imports
60 #-------------------------------------------------------------------------------
61
62 # Stdlib imports
63 import os
64
65 from glob import glob
66
67 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
59 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
68 # update it when the contents of directories change.
60 # update it when the contents of directories change.
69 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
61 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
@@ -162,10 +154,10 b" setup_args['cmdclass'] = {"
162
154
163 # For some commands, use setuptools. Note that we do NOT list install here!
155 # For some commands, use setuptools. Note that we do NOT list install here!
164 # If you want a setuptools-enhanced install, just run 'setupegg.py install'
156 # If you want a setuptools-enhanced install, just run 'setupegg.py install'
165 needs_setuptools = set(('develop', 'release', 'bdist_egg', 'bdist_rpm',
157 needs_setuptools = {'develop', 'release', 'bdist_egg', 'bdist_rpm',
166 'bdist', 'bdist_dumb', 'bdist_wininst', 'bdist_wheel',
158 'bdist', 'bdist_dumb', 'bdist_wininst', 'bdist_wheel',
167 'egg_info', 'easy_install', 'upload', 'install_egg_info',
159 'egg_info', 'easy_install', 'upload', 'install_egg_info',
168 ))
160 }
169
161
170 if len(needs_setuptools.intersection(sys.argv)) > 0:
162 if len(needs_setuptools.intersection(sys.argv)) > 0:
171 import setuptools
163 import setuptools
General Comments 0
You need to be logged in to leave comments. Login now