mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +00:00
Scan more Python 3 versions
This commit is contained in:
parent
3273f76b46
commit
b65e5fed94
@ -4582,7 +4582,7 @@ class Worker(ServiceCommandSection):
|
|||||||
"cp -Rf {mount_ssh_ro} -T {mount_ssh}" if host_ssh_cache else "",
|
"cp -Rf {mount_ssh_ro} -T {mount_ssh}" if host_ssh_cache else "",
|
||||||
"[ ! -z $(which git) ] || export CLEARML_APT_INSTALL=\"$CLEARML_APT_INSTALL git\"",
|
"[ ! -z $(which git) ] || export CLEARML_APT_INSTALL=\"$CLEARML_APT_INSTALL git\"",
|
||||||
"declare LOCAL_PYTHON",
|
"declare LOCAL_PYTHON",
|
||||||
"[ ! -z $LOCAL_PYTHON ] || for i in {{15..5}}; do which {python_single_digit}.$i && " +
|
"[ ! -z $LOCAL_PYTHON ] || for i in {{20..5}}; do which {python_single_digit}.$i && " +
|
||||||
"{python_single_digit}.$i -m pip --version && " +
|
"{python_single_digit}.$i -m pip --version && " +
|
||||||
"export LOCAL_PYTHON=$(which {python_single_digit}.$i) && break ; done",
|
"export LOCAL_PYTHON=$(which {python_single_digit}.$i) && break ; done",
|
||||||
"[ ! -z $LOCAL_PYTHON ] || export CLEARML_APT_INSTALL=\"$CLEARML_APT_INSTALL {python_single_digit}-pip\"", # noqa
|
"[ ! -z $LOCAL_PYTHON ] || export CLEARML_APT_INSTALL=\"$CLEARML_APT_INSTALL {python_single_digit}-pip\"", # noqa
|
||||||
|
@ -83,7 +83,7 @@ class K8sIntegration(Worker):
|
|||||||
for line in _CONTAINER_APT_SCRIPT_SECTION
|
for line in _CONTAINER_APT_SCRIPT_SECTION
|
||||||
),
|
),
|
||||||
"declare LOCAL_PYTHON",
|
"declare LOCAL_PYTHON",
|
||||||
"[ ! -z $LOCAL_PYTHON ] || for i in {{15..5}}; do which python3.$i && python3.$i -m pip --version && "
|
"[ ! -z $LOCAL_PYTHON ] || for i in {{20..5}}; do which python3.$i && python3.$i -m pip --version && "
|
||||||
"export LOCAL_PYTHON=$(which python3.$i) && break ; done",
|
"export LOCAL_PYTHON=$(which python3.$i) && break ; done",
|
||||||
'[ ! -z "$CLEARML_AGENT_SKIP_CONTAINER_APT" ] || [ ! -z "$LOCAL_PYTHON" ] || apt-get install -y python3-pip',
|
'[ ! -z "$CLEARML_AGENT_SKIP_CONTAINER_APT" ] || [ ! -z "$LOCAL_PYTHON" ] || apt-get install -y python3-pip',
|
||||||
"[ ! -z $LOCAL_PYTHON ] || export LOCAL_PYTHON=python3",
|
"[ ! -z $LOCAL_PYTHON ] || export LOCAL_PYTHON=python3",
|
||||||
|
Loading…
Reference in New Issue
Block a user