Add support for Python 3 in workspace
This commit is contained in:
parent
a1cda7f497
commit
4e7888cb08
@ -139,6 +139,7 @@ WORKSPACE_INSTALL_LINUXBREW=false
|
|||||||
WORKSPACE_INSTALL_MC=false
|
WORKSPACE_INSTALL_MC=false
|
||||||
WORKSPACE_INSTALL_SYMFONY=false
|
WORKSPACE_INSTALL_SYMFONY=false
|
||||||
WORKSPACE_INSTALL_PYTHON=false
|
WORKSPACE_INSTALL_PYTHON=false
|
||||||
|
WORKSPACE_INSTALL_PYTHON3=false
|
||||||
WORKSPACE_INSTALL_POWERLINE=false
|
WORKSPACE_INSTALL_POWERLINE=false
|
||||||
WORKSPACE_INSTALL_SUPERVISOR=false
|
WORKSPACE_INSTALL_SUPERVISOR=false
|
||||||
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
|
@ -1068,7 +1068,7 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
|||||||
;fi
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# PYTHON:
|
# PYTHON2:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
ARG INSTALL_PYTHON=false
|
ARG INSTALL_PYTHON=false
|
||||||
@ -1079,6 +1079,18 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
|||||||
&& python -m pip install --upgrade virtualenv \
|
&& python -m pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# PYTHON3:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_PYTHON3=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_PYTHON3} = true ]; then \
|
||||||
|
apt-get -y install python3 python3-pip python3-dev build-essential \
|
||||||
|
&& python3 -m pip install --upgrade pip \
|
||||||
|
&& python3 -m pip install --upgrade virtualenv \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# POWERLINE:
|
# POWERLINE:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user