-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix relocation for virtualenv>=20.26.6
Virtualenv versions 20.26.6 and greater include a change to the activate script templates. Previously, the full path to the virtualenv that is rendered into the activation script was quoted. The newer versions render unquoted paths. The regular expressions used to match these paths now conditionally matches the quotes which should work for both old and new activation scripts.
- Loading branch information
1 parent
35eeb0f
commit 04d54fe
Showing
6 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM docker.io/ubuntu:latest | ||
|
||
RUN apt-get update && apt-get install --yes \ | ||
curl wget \ | ||
make git vim less \ | ||
sudo \ | ||
bash-completion man \ | ||
software-properties-common \ | ||
build-essential libssl-dev zlib1g-dev libbz2-dev \ | ||
libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev \ | ||
xz-utils tk-dev libffi-dev liblzma-dev \ | ||
python3-pip && \ | ||
pip install --break-system-packages tox virtualenv | ||
|
||
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && \ | ||
apt-get install --yes python3.10 python3.11 python3.12 python3.13 \ | ||
python3.10-distutils python3.11-distutils \ | ||
python3-venv python3.10-venv python3.11-venv python3.13-venv python3.13-venv | ||
|
||
RUN echo ubuntu ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/ubuntu \ | ||
&& chmod 0440 /etc/sudoers.d/ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "venvctrl", | ||
"build": { | ||
"dockerfile": "Containerfile", | ||
"context": ".." | ||
}, | ||
"remoteUser": "ubuntu", | ||
"updateRemoteUserUID": true, | ||
"containerEnv": {}, | ||
"mounts": [], | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"telemetry.telemetryLevel": "off", | ||
"telemetry.enableTelemetry": false, | ||
"files.insertFinalNewline": true, | ||
"files.trimTrailingWhitespace": true, | ||
"terminal.integrated.profiles.linux": { | ||
"bash": { | ||
"path": "/usr/bin/bash" | ||
} | ||
}, | ||
"terminal.integrated.defaultProfile.linux": "bash" | ||
}, | ||
"extensions": [ | ||
"ms-python.python", | ||
"redhat.vscode-yaml" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters