mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
importlib_metadata: drop Python 3.9 support.
Only users on-tree (pytest, qutebrowser) are already 3.10 only.
This commit is contained in:
@@ -6,7 +6,7 @@ by PyPA tools (or other conforming packages). It does not support:
|
||||
HOMEPAGE="https://pypi.python.org/pypi/importlib-metadata"
|
||||
COPYRIGHT="2017-2023 Jason R. Coombs, Barry Warsaw"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/i/$portName/$portName-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743"
|
||||
|
||||
@@ -23,13 +23,12 @@ BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
@@ -56,14 +55,11 @@ INSTALL()
|
||||
# generating wrong default value in that case.
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=$portVersion
|
||||
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
python=python${PYTHON_VERSIONS[$i]}
|
||||
|
||||
# Needed to build without -G in the haikuporter build call.
|
||||
# the presence of HaikuPorter's working .git dir seems to confuse
|
||||
# some python's builds/packages.
|
||||
rm -rf dist
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
|
||||
Reference in New Issue
Block a user