python_pathtools: depends on python2.

This commit is contained in:
Jerome Duval
2016-04-14 22:38:28 +00:00
parent 4986ec1f30
commit 9245c9342b

View File

@@ -6,7 +6,7 @@ HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
COPYRIGHT="2010 Yesudeep Mangalapilly"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-0.1.2.tar.gz"
CHECKSUM_SHA256="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
SOURCE_DIR="pathtools-$portVersion"
@@ -18,7 +18,7 @@ PROVIDES="
"
REQUIRES="
haiku
cmd:python
cmd:python2
"
BUILD_REQUIRES="
@@ -26,19 +26,19 @@ BUILD_REQUIRES="
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
cmd:python2
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python/bin/python
python=$portPackageLinksDir/cmd~python2/bin/python2
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH