PycURL: rewrite BUILD_{,PRE}REQUIRES.

This commit is contained in:
fbrosson
2018-10-21 16:30:45 +00:00
parent 6f0b266ea9
commit 25ec06df17

View File

@@ -55,11 +55,23 @@ PYTHON_VERSIONS=()
if [ -z "$secondaryArchSuffix" ]; then
PYTHON_PACKAGES+=(python)
PYTHON_LIBSUFFIXES+=("")
BUILD_REQUIRES+="
setuptools_python
"
BUILD_PREREQUIRES+="
cmd:python2
"
fi
# gcc2 does not support the flags passed by python3
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
PYTHON_PACKAGES+=(python3)
PYTHON_LIBSUFFIXES+=(m)
BUILD_REQUIRES+="
setuptools_python3
"
BUILD_PREREQUIRES+="
cmd:python3
"
fi
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
@@ -81,14 +93,6 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
devel:libpython$pythonVersion$pythonLibSuffix$secondaryArchSuffix
"
done
INSTALL()