changeset 937:cdbedfb9dfd0

vanilla: update python templates
author David Demelier <markand@malikania.fr>
date Thu, 29 Aug 2019 20:47:00 +0200
parents fc9c0a79d6f9
children aeecf0ec4b44
files Templates/python-hybrid.sh Templates/python.sh
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Templates/python-hybrid.sh	Thu Aug 29 20:34:00 2019 +0200
+++ b/Templates/python-hybrid.sh	Thu Aug 29 20:47:00 2019 +0200
@@ -21,7 +21,7 @@
 PKGLICENSE="one of README.licenses.md or CUSTOM"
 PKGSUMMARY="short summary"
 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz"
-PKGDEPENDS="python/python python/py-setuptools"
+PKGDEPENDS="python python2 py-setuptools"
 # PKGOPTIONS="FOO BAR BAZ"
 
 build()
@@ -32,7 +32,7 @@
 		cd $PKGNAME-$PKGVERSION
 
 		$py setup.py build
-		$py setup.py install --root=${DESTDIR:-/} -O1
+		$py setup.py install --root=$DESTDIR --prefix=/.
 
 		cd ..
 		rm -rf $PKGNAME-$PKGVERSION
--- a/Templates/python.sh	Thu Aug 29 20:34:00 2019 +0200
+++ b/Templates/python.sh	Thu Aug 29 20:47:00 2019 +0200
@@ -21,7 +21,7 @@
 PKGLICENSE="one of README.licenses.md or CUSTOM"
 PKGSUMMARY="short summary"
 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz"
-PKGDEPENDS="python/python python/py-setuptools"
+PKGDEPENDS="python py-setuptools"
 # PKGOPTIONS="FOO BAR BAZ"
 
 build()
@@ -31,7 +31,7 @@
 	cd $PKGNAME-$PKGVERSION
 
 	python setup.py build
-	python setup.py install --root=${DESTDIR:-/} -O1
+	python setup.py install --root=$DESTDIR --prefix=/.
 
 	cd ..
 	rm -rf $PKGNAME-$PKGVERSION