File tree 4 files changed +12
-10
lines changed
4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ wheelhouse: .build-runners .stamp-wheelhouse
130
130
.stamp-wheelhouse : | populate_version requirements inject-deps
131
131
cat requirements.txt
132
132
# Try to install wheels 2x in case the first one fails
133
- $(PIP_BINARY ) wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt || \
134
- $(PIP_BINARY ) wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt
133
+ $(PIP_BINARY ) --use-deprecated=legacy-resolver wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt || \
134
+ $(PIP_BINARY ) --use-deprecated=legacy-resolver wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt
135
135
touch $@
136
136
137
137
.build-runners :
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ wheelhouse: .stamp-wheelhouse
75
75
# Install wheels into shared location
76
76
cat requirements.txt
77
77
# Try to install wheels 2x in case the first one fails
78
- $(PIP_BINARY ) wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt || \
79
- $(PIP_BINARY ) wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt
78
+ $(PIP_BINARY ) --use-deprecated=legacy-resolver wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt || \
79
+ $(PIP_BINARY ) --use-deprecated=legacy-resolver wheel --wheel-dir=$(WHEELDIR ) --find-links=$(WHEELDIR ) -r requirements.txt
80
80
touch $@
81
81
82
82
bdist_wheel : .stamp-bdist_wheel
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
11
11
WHEELDIR ?= /tmp/wheelhouse
12
12
DH_VIRTUALENV_INSTALL_ROOT := /opt/stackstorm
13
13
export DH_VIRTUALENV_INSTALL_ROOT
14
+ PIP_VERSION = 20.3.3
14
15
15
16
IS_SYSTEMD = $(shell command -v dh_systemd_enable > /dev/null 2>&1 && echo true)
16
17
DEB_DISTRO := $(shell lsb_release -cs)
@@ -67,10 +68,11 @@ override_dh_virtualenv:
67
68
#
68
69
# NB! Use '--no-download' arg for 'virtualenv' is required,
69
70
# otherwise it downloads latest PIP version instead of bundled/pinned one.
70
- # --force-pip-version is needed to ensure correct pip version is installed
71
- # inside dh virtualenv
72
- dh_virtualenv --extra-virtualenv-arg=' --no-download' \
73
- --force-pip-version=' 20.0.2' \
71
+ # NB! Use '--copies' else /opt/stackstorm/st2/bin/python is symlink to
72
+ # /usr/bin/pythonx rather than copy - and this breaks pack install
73
+ # which follows the path to calculate the location of the bin directory
74
+ dh_virtualenv --extra-virtualenv-arg=' --copies' --extra-virtualenv-arg=' --no-download' \
75
+ ' --upgrade-pip-to=$(PIP_VERSION)' \
74
76
--extra-pip-arg ' --find-links=$(WHEELDIR)' \
75
77
--extra-pip-arg ' --no-index' --no-test
76
78
Original file line number Diff line number Diff line change 9
9
10
10
%define venv_python %{venv_bin }/python3
11
11
# https://github.com/StackStorm/st2/wiki/Where-all-to-update-pip-and-or-virtualenv
12
- %define pin_pip %{venv_python } %{venv_bin }/pip3 install pip== 20.0.2
12
+ %define pin_pip %{venv_python } %{venv_bin }/pip3 install pip== 20.3.3
13
13
%define install_venvctrl python3 -m pip install venvctrl
14
14
%if 0%{?rhel } == 8
15
15
%define install_crypto %{venv_python } %{venv_bin }/pip install cryptography== 2.8 --no-binary cryptography
28
28
virtualenv-3 -p python3 --no-download %{venv_dir } \
29
29
%{pin_pip } \
30
30
%{install_crypto } \
31
- %{venv_pip } -r requirements.txt \
31
+ %{venv_pip } --use-deprecated = legacy-resolver - r requirements.txt \
32
32
%{venv_pip } . \
33
33
%{install_venvctrl } \
34
34
venvctrl-relocate --source= %{venv_dir } --destination= /%{venv_install_dir } \
You can’t perform that action at this time.
0 commit comments