1
0
forked from ports/opt

python ports: FS#1380 - fix for python-pip related packages

This commit is contained in:
Danny Rawlins 2017-03-04 14:21:01 +11:00
parent 123579bea2
commit f00e8cd02e
12 changed files with 18 additions and 5 deletions

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -12,13 +12,13 @@ source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${
build() {
cd ${name#*-}-$version
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
/usr/bin/python setup.py build
@ -32,5 +32,6 @@ build() {
--prefix=/usr --root=$PKG --optimize=1
fi
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
find $PKG/usr/lib/python$PYTHONVERSION/site-packages -type f -exec chmod go-w {} +
}

View File

@ -16,6 +16,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -12,12 +12,13 @@ source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${
build() {
cd ${name#*-}-$version
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
/usr/bin/python3 setup.py build
@ -31,5 +32,6 @@ build() {
--prefix=/usr --root=$PKG --optimize=1
fi
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
find $PKG/usr/lib/python$PYTHONVERSION/site-packages -type f -exec chmod go-w {} +
}

View File

@ -16,6 +16,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')

View File

@ -14,6 +14,7 @@ build() {
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')