Skip to content

Commit

Permalink
Merge pull request #80 from DrDaveD/v1
Browse files Browse the repository at this point in the history
Use --only-binary=:all: instead of --no-deps in make-downloads when it works
  • Loading branch information
DrDaveD authored May 25, 2023
2 parents 4bd03f8 + 724f359 commit bbe60a1
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions make-downloads
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ BASE="$BASE-`sed -n 's/^%define downloads_version //p' htgettoken.spec`"
export MYPYTHONVERSION=3$(python3 -V|cut -d. -f2)
for pythonversion in 36 39; do
(
set -ex
BASE=$BASE/python$pythonversion
mkdir -p $BASE/.local
if [ "$(pip3 --version|sed 's/[^ ]* \([^.]*\).*/\1/')" -lt 19 ]; then
Expand All @@ -16,14 +17,18 @@ for pythonversion in 36 39; do
fi
PATH=$PWD/$BASE/.local/bin:$PATH
export PYTHONPATH=`echo $PWD/$BASE/.local/lib/*/site-packages`
PIPOPTS="download --no-cache-dir --python-version=$pythonversion --no-deps -d $PWD/$BASE"
pip3 $PIPOPTS pyinstaller
pip3 $PIPOPTS m2crypto
pip3 $PIPOPTS pyOpenSSL
pip3 $PIPOPTS kerberos
pip3 $PIPOPTS paramiko
pip3 $PIPOPTS wheel
if [ $MYPTHONVERSION != $pythonversion ]; then
PIPOPTS="download --no-cache-dir --python-version=$pythonversion -d $PWD/$BASE"
# The --pyhon-version option requires either --only-binary=:all: or
# --no-deps, and the former does not work on some packages so use
# the latter when needed. The disadvantage of --no-deps is that
# it doesn't automatically pull in dependencies.
pip3 $PIPOPTS --only-binary=:all: pyinstaller
pip3 $PIPOPTS --no-deps m2crypto
pip3 $PIPOPTS --only-binary=:all: pyOpenSSL
pip3 $PIPOPTS --no-deps kerberos
pip3 $PIPOPTS --only-binary=:all: paramiko
pip3 $PIPOPTS --only-binary=:all: wheel
if [ $MYPYTHONVERSION != $pythonversion ]; then
rm -rf $BASE/.local
fi
)
Expand Down

0 comments on commit bbe60a1

Please sign in to comment.