Skip to content

Commit bbe60a1

Browse files
authored
Merge pull request #80 from DrDaveD/v1
Use --only-binary=:all: instead of --no-deps in make-downloads when it works
2 parents 4bd03f8 + 724f359 commit bbe60a1

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

make-downloads

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BASE="$BASE-`sed -n 's/^%define downloads_version //p' htgettoken.spec`"
88
export MYPYTHONVERSION=3$(python3 -V|cut -d. -f2)
99
for pythonversion in 36 39; do
1010
(
11+
set -ex
1112
BASE=$BASE/python$pythonversion
1213
mkdir -p $BASE/.local
1314
if [ "$(pip3 --version|sed 's/[^ ]* \([^.]*\).*/\1/')" -lt 19 ]; then
@@ -16,14 +17,18 @@ for pythonversion in 36 39; do
1617
fi
1718
PATH=$PWD/$BASE/.local/bin:$PATH
1819
export PYTHONPATH=`echo $PWD/$BASE/.local/lib/*/site-packages`
19-
PIPOPTS="download --no-cache-dir --python-version=$pythonversion --no-deps -d $PWD/$BASE"
20-
pip3 $PIPOPTS pyinstaller
21-
pip3 $PIPOPTS m2crypto
22-
pip3 $PIPOPTS pyOpenSSL
23-
pip3 $PIPOPTS kerberos
24-
pip3 $PIPOPTS paramiko
25-
pip3 $PIPOPTS wheel
26-
if [ $MYPTHONVERSION != $pythonversion ]; then
20+
PIPOPTS="download --no-cache-dir --python-version=$pythonversion -d $PWD/$BASE"
21+
# The --pyhon-version option requires either --only-binary=:all: or
22+
# --no-deps, and the former does not work on some packages so use
23+
# the latter when needed. The disadvantage of --no-deps is that
24+
# it doesn't automatically pull in dependencies.
25+
pip3 $PIPOPTS --only-binary=:all: pyinstaller
26+
pip3 $PIPOPTS --no-deps m2crypto
27+
pip3 $PIPOPTS --only-binary=:all: pyOpenSSL
28+
pip3 $PIPOPTS --no-deps kerberos
29+
pip3 $PIPOPTS --only-binary=:all: paramiko
30+
pip3 $PIPOPTS --only-binary=:all: wheel
31+
if [ $MYPYTHONVERSION != $pythonversion ]; then
2732
rm -rf $BASE/.local
2833
fi
2934
)

0 commit comments

Comments
 (0)