Use entry points for scripts

To make Windows exe launchers, see jupyter/jupyter#15
This commit is contained in:
Thomas Kluyver 2015-08-13 14:02:42 -07:00 committed by Min RK
parent 68759c84d0
commit d404af9d16

View File

@ -177,6 +177,14 @@ if 'setuptools' in sys.modules:
setup_args['extras_require'] = extras_require
requires = setup_args['install_requires'] = install_requires
setup_args['entry_points'] = {
'console_scripts': [
'jupyter-notebook = notebook.notebookapp:main',
'jupyter-nbextension = notebook.nbextensions:main',
]
}
setup_args.pop('scripts', None)
#---------------------------------------------------------------------------
# Do the actual setup now
#---------------------------------------------------------------------------