##// END OF EJS Templates
Add post_install script to create start menu entries in Python 3.
Thomas Kluyver -
Show More
@@ -1,4 +1,5 b''
1 import os.path
1 import os.path
2 import sys
2 from setuptools import setup
3 from setuptools import setup
3 from setuptools.command.build_py import build_py
4 from setuptools.command.build_py import build_py
4
5
@@ -14,6 +15,20 b" setup_args['packages'] = find_packages()"
14 setup_args['package_data'] = find_package_data()
15 setup_args['package_data'] = find_package_data()
15 setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
16 setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
16
17
18 # Script to be run by the windows binary installer after the default setup
19 # routine, to add shortcuts and similar windows-only things. Windows
20 # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
21 # doesn't find them.
22 if 'bdist_wininst' in sys.argv:
23 if len(sys.argv) > 2 and \
24 ('sdist' in sys.argv or 'bdist_rpm' in sys.argv):
25 print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting."
26 sys.exit(1)
27 setup_args['scripts'] = [os.path.join('scripts','ipython_win_post_install.py')]
28 setup_args['options'] = {"bdist_wininst":
29 {"install_script":
30 "ipython_win_post_install.py"}}
31
17 def main():
32 def main():
18 setup(use_2to3 = True, **setup_args)
33 setup(use_2to3 = True, **setup_args)
19
34
General Comments 0
You need to be logged in to leave comments. Login now