Skip to content

Commit

Permalink
Trying to fix debian docker venv issue
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Aug 8, 2024
1 parent 03afb77 commit 2c2a2a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ RUN curl -fsSLO https://dot.net/v1/dotnet-install.sh \
ENV GOLANG_VERSION 1.22
RUN apt -y update && apt -y upgrade && apt -y install \
python3 \
python3-venv \
python3-pip \
ca-certificates && \
apt -y install -t unstable \
golang-$GOLANG_VERSION \
Expand All @@ -104,10 +104,8 @@ RUN apt -y update && apt -y upgrade && apt -y install \
ln -sf /usr/bin/python3 /usr/bin/python && \
# Symlink go binary to bin directory which is in path
ln -s /usr/lib/go-$GOLANG_VERSION/bin/go /usr/bin/go
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3
RUN python3 -m pip install --upgrade pip

RUN rm /usr/lib/python3.11/EXTERNALLY-MANAGED
RUN python3 -m pip install -user virtualenv

RUN dotnet --version

Expand Down
2 changes: 1 addition & 1 deletion internal/resolution/pm/pip/cmd_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type CmdFactory struct {

func (cmdf CmdFactory) MakeCreateVenvCmd(fpath string) (*exec.Cmd, error) {
python, err := cmdf.execPath.LookPath("python3")
pythonCommand := "python3.11"
pythonCommand := "python3"
if err != nil {
if strings.Contains(err.Error(), "executable file not found in ") {
// Python 3 not found, try Python
Expand Down

0 comments on commit 2c2a2a3

Please sign in to comment.