8000 [CI][AltLinux 10] Work with virtualenv is restored · postgrespro/testgres@8300e84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8300e84

Browse files
[CI][AltLinux 10] Work with virtualenv is restored
Alplinux does in creates /usr/bin/virtualenv but creates /usr/bin/virtualenv3. Let's create the symlink /usr/bin/virtualenv -> /usr/bin/virtualenv3 and restore an usage of virtualenv in run_tests.sh.
1 parent f525954 commit 8300e84

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Dockerfile--altlinux_10.tmpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ RUN apt-get install -y python3
6666
RUN apt-get install -y python3-dev
6767
RUN apt-get install -y python3-module-virtualenv
6868
RUN apt-get install -y python3-modules-sqlite3
69+
70+
# AltLinux does not have "generic" virtualenv utility. Let's create it.
71+
RUN if [[ -f "/usr/bin/virtualenv" ]] ; then \
72+
echo AAA; \
73+
elif [[ -f "/usr/bin/virtualenv3" ]] ; then \
74+
ln -s /usr/bin/virtualenv3 /usr/bin/virtualenv; \
75+
else \
76+
echo "/usr/bin/virtualenv is not created!"; \
77+
exit 1; \
78+
fi
79+
6980
ENV PYTHON_VERSION=3
7081

7182
# --------------------------------------------- final

run_tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ fi
1010

1111
# choose python version
1212
echo python version is $PYTHON_VERSION
13-
PYTHON="python$PYTHON_VERSION"
1413
PIP="pip$PYTHON_VERSION"
15-
VIRTUALENV="${PYTHON} -m virtualenv --python=/usr/bin/python$PYTHON_VERSION"
14+
VIRTUALENV="virtualenv --python=/usr/bin/python$PYTHON_VERSION"
1615

1716
# fail early
1817
echo check that pg_config is in PATH

0 commit comments

Comments
 (0)
0