Skip to content
Snippets Groups Projects
Commit f5c471ff authored by Pascal Baumann's avatar Pascal Baumann
Browse files
parent cafbf57d
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,18 @@ RUN jupyter labextension install jupyterlab_tensorboard && \ ...@@ -37,11 +37,18 @@ RUN jupyter labextension install jupyterlab_tensorboard && \
ARG RENKU_VERSION=0.16.1 ARG RENKU_VERSION=0.16.1
######################################################## ########################################################
# Do not edit this section and do not add anything below # Install renku from pypi or from github if it's a dev version
RUN if [ -n "$RENKU_VERSION" ] ; then \ RUN if [ -n "$RENKU_VERSION" ] ; then \
pipx uninstall renku && \ currentversion=$(pipx list | sed -n "s/^\s*package\srenku\s\([^,]\+\),.*$/\1/p") ; \
pipx install --force renku==${RENKU_VERSION} \ if [ "$RENKU_VERSION" != "$currentversion" ] ; then \
; fi pipx uninstall renku ; \
/home/jovyan/.local/pipx/shared/bin/pip install setuptools==57.5.0; \
######################################################## gitversion=$(echo "$RENKU_VERSION" | sed -n "s/^[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\(\.dev[[:digit:]]\+\)*\(+g\([a-f0-9]\+\)\)*\(+dirty\)*$/\3/p"); \
if [ -n "$gitversion" ] ; then \
pipx install --force "git+https://github.com/SwissDataScienceCenter/renku-python.git@$gitversion" ;\
else \
pipx install --force renku==${RENKU_VERSION} ;\
fi \
fi \
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment