mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
install subpackages
This commit is contained in:
8
setup.py
8
setup.py
@@ -69,11 +69,15 @@ def get_data_files():
|
|||||||
ns = {}
|
ns = {}
|
||||||
execfile(pjoin(here, 'jupyterhub', 'version.py'), ns)
|
execfile(pjoin(here, 'jupyterhub', 'version.py'), ns)
|
||||||
|
|
||||||
|
packages = []
|
||||||
|
for d, _, _ in os.walk('jupyterhub'):
|
||||||
|
if os.path.exists(pjoin(d, '__init__.py')):
|
||||||
|
packages.append(d.replace(os.path.sep, '.'))
|
||||||
|
|
||||||
setup_args = dict(
|
setup_args = dict(
|
||||||
name = 'jupyterhub',
|
name = 'jupyterhub',
|
||||||
scripts = glob(pjoin('scripts', '*')),
|
scripts = glob(pjoin('scripts', '*')),
|
||||||
packages = ['jupyterhub'],
|
packages = packages,
|
||||||
package_data = {'jupyterhub' : ['templates/*']},
|
|
||||||
# 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
|
||||||
data_files = get_data_files() or ['dummy'],
|
data_files = get_data_files() or ['dummy'],
|
||||||
|
Reference in New Issue
Block a user