mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
setuptools(_scm), bump version (#8758)
This commit is contained in:
65
dev-python/setuptools/setuptools-67.8.0.recipe
Normal file
65
dev-python/setuptools/setuptools-67.8.0.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
SUMMARY="Download, build, install, upgrade, and uninstall Python packages"
|
||||
DESCRIPTION="EasyInstall (easy_install) gives you a quick and painless way \
|
||||
to install packages remotely by connecting to the cheeseshop or even other \
|
||||
websites via HTTP. It is somewhat analogous to the CPAN and PEAR tools for \
|
||||
Perl and PHP, respectively."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
|
||||
COPYRIGHT="2006-2013 Python Packaging Authority"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="62642358adc77ffa87233bc4d2354c4b2682d214048f500964dbe760ccedf102"
|
||||
PATCHES="setuptools-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python38 python39 python310)
|
||||
PYTHON_VERSIONS=(3.8 3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
export SETUPTOOLS_USE_DISTUTILS=local
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user