mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +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:
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from jupyterhub.app import main
|
|
||||||
main()
|
|
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
from jupyterhub.singleuser import main
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
5
setup.py
5
setup.py
@@ -89,7 +89,6 @@ with open('README.md', encoding="utf8") as f:
|
|||||||
|
|
||||||
setup_args = dict(
|
setup_args = dict(
|
||||||
name = 'jupyterhub',
|
name = 'jupyterhub',
|
||||||
scripts = glob(pjoin('scripts', '*')),
|
|
||||||
packages = packages,
|
packages = packages,
|
||||||
# dummy, so that install_data doesn't get skipped
|
# dummy, so that install_data doesn't get skipped
|
||||||
# this will be overridden when bower is run anyway
|
# this will be overridden when bower is run anyway
|
||||||
@@ -121,6 +120,10 @@ setup_args = dict(
|
|||||||
'localprocess = jupyterhub.spawner:LocalProcessSpawner',
|
'localprocess = jupyterhub.spawner:LocalProcessSpawner',
|
||||||
'simple = jupyterhub.spawner:SimpleLocalProcessSpawner',
|
'simple = jupyterhub.spawner:SimpleLocalProcessSpawner',
|
||||||
],
|
],
|
||||||
|
'console_scripts': [
|
||||||
|
'jupyterhub = jupyterhub.app:main',
|
||||||
|
'jupyterhub-singleuser = jupyterhub.singleuser:main',
|
||||||
|
]
|
||||||
},
|
},
|
||||||
classifiers = [
|
classifiers = [
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
Reference in New Issue
Block a user