mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
pytest, enable cmd's for different python versions (#7005)
This commit is contained in:
@@ -11,8 +11,6 @@ ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
pytest=$portVersion
|
||||
cmd:py.test
|
||||
cmd:pytest
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
@@ -28,7 +26,9 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
${portName}_$pythonPackage = $portVersion\n\
|
||||
cmd:py.test$pythonVersion\n\
|
||||
cmd:pytest$pythonVersion\n\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
@@ -67,7 +67,11 @@ INSTALL()
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
mv $prefix/bin/pytest $prefix/bin/pytest$pythonVersion
|
||||
mv $prefix/bin/py.test $prefix/bin/py.test$pythonVersion
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
$prefix/lib/python* \
|
||||
$prefix/bin
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user