##// END OF EJS Templates
cleanup connection files on notebook shutdown...
cleanup connection files on notebook shutdown Kernels would not linger, but the KernelManagers are not garbage-collected on shutdown. This means that connection files for kernels still running at notebook shutdown would not be removed. Also disable the unnecessary (and actively unhelpful) SIGINT handler inherited from the original copy/paste from the qt app.

File last commit:

r5674:e64bea04
r5799:1e917565
Show More
setup3.py
36 lines | 1.3 KiB | text/x-python | PythonLexer
Thomas Kluyver
Make installation with Python 3 possible.
r4750 import os.path
Thomas Kluyver
Add post_install script to create start menu entries in Python 3.
r5674 import sys
Thomas Kluyver
Make installation with Python 3 possible.
r4750 from setuptools import setup
Thomas Kluyver
Fix IPython.utils.sysinfo for Python 3.
r4900 from setuptools.command.build_py import build_py
Thomas Kluyver
Make installation with Python 3 possible.
r4750
Thomas Kluyver
Update irunner - needs work on pexpect to work in Python 3.
r4893 from setupbase import (setup_args,
find_scripts,
find_packages,
find_package_data,
Thomas Kluyver
Fix IPython.utils.sysinfo for Python 3.
r4900 record_commit_info,
Thomas Kluyver
Update irunner - needs work on pexpect to work in Python 3.
r4893 )
Thomas Kluyver
Make installation with Python 3 possible.
r4750
Thomas Kluyver
Allow 'python setup.py install' to work correctly for either Python 2 or 3.
r4765 setup_args['entry_points'] = find_scripts(True, suffix='3')
Thomas Kluyver
Make installation with Python 3 possible.
r4750 setup_args['packages'] = find_packages()
Thomas Kluyver
Add notebook resources to Python 3 build process.
r4838 setup_args['package_data'] = find_package_data()
Thomas Kluyver
Fix IPython.utils.sysinfo for Python 3.
r4900 setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
Thomas Kluyver
Make installation with Python 3 possible.
r4750
Thomas Kluyver
Add post_install script to create start menu entries in Python 3.
r5674 # Script to be run by the windows binary installer after the default setup
# routine, to add shortcuts and similar windows-only things. Windows
# post-install scripts MUST reside in the scripts/ dir, otherwise distutils
# doesn't find them.
if 'bdist_wininst' in sys.argv:
if len(sys.argv) > 2 and \
('sdist' in sys.argv or 'bdist_rpm' in sys.argv):
print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting."
sys.exit(1)
setup_args['scripts'] = [os.path.join('scripts','ipython_win_post_install.py')]
setup_args['options'] = {"bdist_wininst":
{"install_script":
"ipython_win_post_install.py"}}
Thomas Kluyver
Allow 'python setup.py install' to work correctly for either Python 2 or 3.
r4765 def main():
setup(use_2to3 = True, **setup_args)
if __name__ == "__main__":
main()