From 1179f2a2653bfba2f1819f4e86674614c0fd7813 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 17 Jun 2014 12:00:00 +0200 Subject: [PATCH] python-setuptools: update to 5.1 Build python3.4 module too. --- srcpkgs/python-setuptools/template | 35 +++++++++++++++++++++++------- srcpkgs/python3.4-setuptools | 1 + 2 files changed, 28 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3.4-setuptools diff --git a/srcpkgs/python-setuptools/template b/srcpkgs/python-setuptools/template index 09756d4149f..172a731b9ad 100644 --- a/srcpkgs/python-setuptools/template +++ b/srcpkgs/python-setuptools/template @@ -1,19 +1,38 @@ # Template file for 'python-setuptools' pkgname=python-setuptools -version=3.5.1 +version=5.1 revision=1 wrksrc="setuptools-${version}" build_style=python-module -hostmakedepends="python-devel" -makedepends="python-devel" +hostmakedepends="python-devel python3.4-devel" +makedepends="${hostmakedepends}" +depends="python>=2.7" noarch="yes" -depends="python" +python_versions="2.7 3.4" pycompile_module="easy_install.py pkg_resources.py _markerlib setuptools" provides="python-distribute-${version}_1" replaces="python-distribute>=0" -short_desc="Easily download, build, install, upgrade, and uninstall Python packages" -maintainer="Juan RP " +short_desc="Easily download, build, install, upgrade, and uninstall Python2 packages" +maintainer="Alessio Sergi " homepage="http://pypi.python.org/pypi/setuptools" license="PSF" -distfiles="http://pypi.python.org/packages/source/s/setuptools/setuptools-$version.tar.gz" -checksum=7805d9e06d45ff7526b09d3886b8804eed3c33bd2b5ef3f74825cd45787f2f12 +distfiles="http://pypi.python.org/packages/source/s/setuptools/setuptools-${version}.tar.gz" +checksum=5855a13607cae9123df0981d814d32b5b413b7a20422f642bf3f4c355383485b + +post_install() { + rm -f ${DESTDIR}/usr/bin/easy_install + ln -sf easy_install-2.7 ${DESTDIR}/usr/bin/easy_install +} + +python3.4-setuptools_package() { + noarch="yes" + depends="python3.4" + short_desc="${short_desc//Python2/Python3.4}" + provides="python3-distribute-${version}_1" + replaces="python3-distribute>=0" + pkg_install() { + vmove /usr/bin/easy_install-3.4 + vmove /usr/lib/python3.4 + ln -sf easy_install-3.4 ${PKGDESTDIR}/usr/bin/easy_install3 + } +} diff --git a/srcpkgs/python3.4-setuptools b/srcpkgs/python3.4-setuptools new file mode 120000 index 00000000000..493d712c799 --- /dev/null +++ b/srcpkgs/python3.4-setuptools @@ -0,0 +1 @@ +python-setuptools \ No newline at end of file