##// END OF EJS Templates
Remove unused code for building Windows installers
Thomas Kluyver -
Show More
@@ -239,23 +239,7 b" if 'setuptools' in sys.modules:"
239 ],
239 ],
240 }
240 }
241 setup_args['extras_require'] = extras_require
241 setup_args['extras_require'] = extras_require
242 requires = setup_args['install_requires'] = install_requires
242 setup_args['install_requires'] = install_requires
243
244 # Script to be run by the windows binary installer after the default setup
245 # routine, to add shortcuts and similar windows-only things. Windows
246 # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
247 # doesn't find them.
248 if 'bdist_wininst' in sys.argv:
249 if len(sys.argv) > 2 and \
250 ('sdist' in sys.argv or 'bdist_rpm' in sys.argv):
251 print("ERROR: bdist_wininst must be run alone. Exiting.", file=sys.stderr)
252 sys.exit(1)
253 setup_args['data_files'].append(
254 ['Scripts', ('scripts/ipython.ico', 'scripts/ipython_nb.ico')])
255 setup_args['scripts'] = [pjoin('scripts','ipython_win_post_install.py')]
256 setup_args['options'] = {"bdist_wininst":
257 {"install_script":
258 "ipython_win_post_install.py"}}
259
243
260 else:
244 else:
261 # scripts has to be a non-empty list, or install_scripts isn't called
245 # scripts has to be a non-empty list, or install_scripts isn't called
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now