mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
setuptools: drop support for all but "default Python".
All on-tree users should already be targetting 3.10 only. Whenever we decide on which Python will be the "next default", we can add support for that version on this recipe.
This commit is contained in:
@@ -6,7 +6,7 @@ Perl and PHP, respectively."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
|
||||
COPYRIGHT="2006-2013 Python Packaging Authority"
|
||||
LICENSE="MIT"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"
|
||||
@@ -27,11 +27,11 @@ BUILD_REQUIRES="
|
||||
BUILD_PREREQUIRES="
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310 python311 python312)
|
||||
PYTHON_VERSIONS=(3.9 3.10 3.11 3.12)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
@@ -46,9 +46,8 @@ done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
|
||||
Reference in New Issue
Block a user