kopia lustrzana https://github.com/jupyterhub/repo2docker
Use requirements.txt for installing base packages in requirements.txt
Lets us move to a frozen requirements.txt that can be automated soon.pull/156/head
rodzic
c43d45ce21
commit
a84e8ebcf5
|
@ -26,6 +26,11 @@ class PythonBuildPack(BuildPack):
|
||||||
"${VENV_PATH}/bin"
|
"${VENV_PATH}/bin"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
build_script_files = {
|
||||||
|
'python/requirements.txt': '/tmp/requirements.txt',
|
||||||
|
}
|
||||||
|
|
||||||
build_scripts = [
|
build_scripts = [
|
||||||
(
|
(
|
||||||
"root",
|
"root",
|
||||||
|
@ -43,10 +48,7 @@ class PythonBuildPack(BuildPack):
|
||||||
(
|
(
|
||||||
"${NB_USER}",
|
"${NB_USER}",
|
||||||
r"""
|
r"""
|
||||||
pip install --no-cache-dir \
|
pip install --no-cache-dir -r /tmp/requirements.txt && \
|
||||||
notebook==5.2.2 \
|
|
||||||
ipywidgets==6.0.0 \
|
|
||||||
jupyterlab==0.28 && \
|
|
||||||
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
|
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
|
||||||
jupyter serverextension enable --py jupyterlab --sys-prefix
|
jupyter serverextension enable --py jupyterlab --sys-prefix
|
||||||
"""
|
"""
|
||||||
|
@ -92,6 +94,10 @@ class Python2BuildPack(BuildPack):
|
||||||
'virtualenv'
|
'virtualenv'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build_script_files = {
|
||||||
|
'python/requirements2.txt': '/tmp/requirements2.txt',
|
||||||
|
}
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
('VENV2_PATH', '${APP_BASE}/venv2')
|
('VENV2_PATH', '${APP_BASE}/venv2')
|
||||||
]
|
]
|
||||||
|
@ -117,8 +123,7 @@ class Python2BuildPack(BuildPack):
|
||||||
(
|
(
|
||||||
"${NB_USER}",
|
"${NB_USER}",
|
||||||
r"""
|
r"""
|
||||||
pip2 install --no-cache-dir \
|
pip2 install --no-cache-dir -r /tmp/requirements2.txt && \
|
||||||
ipykernel==4.6.1 && \
|
|
||||||
python2 -m ipykernel install --prefix=${NB_PYTHON_PREFIX}
|
python2 -m ipykernel install --prefix=${NB_PYTHON_PREFIX}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
notebook==5.2.2
|
||||||
|
ipywidgets==6.0.0
|
||||||
|
jupyterlab==0.28
|
|
@ -0,0 +1 @@
|
||||||
|
ipykernel==4.6.1
|
Ładowanie…
Reference in New Issue