mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
setup.py: add automatic script generation
Use setuptools console_scripts functionality to create top level jupyter & jupyterhub-single user entry point scripts on *nix, and executables on Windows. Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
This commit is contained in:
5
setup.py
5
setup.py
@@ -89,7 +89,6 @@ with open('README.md', encoding="utf8") as f:
|
||||
|
||||
setup_args = dict(
|
||||
name = 'jupyterhub',
|
||||
scripts = glob(pjoin('scripts', '*')),
|
||||
packages = packages,
|
||||
# dummy, so that install_data doesn't get skipped
|
||||
# this will be overridden when bower is run anyway
|
||||
@@ -121,6 +120,10 @@ setup_args = dict(
|
||||
'localprocess = jupyterhub.spawner:LocalProcessSpawner',
|
||||
'simple = jupyterhub.spawner:SimpleLocalProcessSpawner',
|
||||
],
|
||||
'console_scripts': [
|
||||
'jupyterhub = jupyterhub.app:main',
|
||||
'jupyterhub-singleuser = jupyterhub.singleuser:main',
|
||||
]
|
||||
},
|
||||
classifiers = [
|
||||
'Intended Audience :: Developers',
|
||||
|
Reference in New Issue
Block a user