mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
setuptools: revert to an older version
newer versions don't install scripts correctly. to be investigated.
This commit is contained in:
@@ -9,7 +9,7 @@ LICENSE="Python"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/pypa/setuptools/archive/v$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e418aa710ab3205c24235e34af8ad6544ffb7d1011cf6896bda0229a20977b39"
|
||||
CHECKSUM_SHA256="8e45c6cb18f81842421560f788521842572a91a0e64419e338a6a15828ccf076"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
@@ -52,11 +52,10 @@ BUILD()
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python$pythonVersion/bin/python$pythonVersion
|
||||
pythonVersion=$($python --version 2>&1) | sed -e 's/Python \(.*\)\..*/\1/'
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
|
||||
$python bootstrap.py
|
||||
$python setup.py build
|
||||
mkdir build/scripts-$pythonVersion
|
||||
mv build build$pythonVersion
|
||||
done
|
||||
}
|
||||
@@ -76,8 +75,12 @@ INSTALL()
|
||||
$python setup.py install \
|
||||
--root=/ --prefix=$prefix --skip-build
|
||||
|
||||
sed -i -e "s|^#\!.*/usr/bin/env python|#!/bin/env python$pythonVersion|" $binDir/easy_install*
|
||||
rm $binDir/easy_install
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
mv build build$pythonVersion
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user