changeset 214:ab744307e379

python/py-setuptools: initial import, closes #1395
author David Demelier <markand@malikania.fr>
date Wed, 20 Mar 2019 20:02:00 +0100
parents d4ef88a663b2
children 8b5d8089a99b
files python/py-setuptools/py-setuptools.sh
diffstat 1 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/py-setuptools/py-setuptools.sh	Wed Mar 20 20:02:00 2019 +0100
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# Copyright (c) 2019 David Demelier <markand@malikania.fr>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+
+PKGNAME=py-setuptools
+PKGVERSION=40.8.0
+PKGREVISION=1
+PKGLICENSE="PSF"
+PKGSUMMARY="enhancements to the Python distutils"
+PKGDOWNLOAD="https://github.com/pypa/setuptools/archive/v$PKGVERSION.tar.gz"
+PKGDEPENDS="python/python python/python2"
+
+build()
+{
+	rm -rf setuptools-$PKGVERSION
+	tar xvaf v$PKGVERSION.tar.gz
+	pushd setuptools-$PKGVERSION
+
+	python2 bootstrap.py
+	python2 setup.py install --root=${DESTDIR:-/} -O1
+	python bootstrap.py
+	python setup.py install --root=${DESTDIR:-/} -O1
+
+	popd
+	rm -rf setuptools-$PKGVERSION
+}