diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-20 09:12:38 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-20 09:13:07 +0300 |
commit | bbb7e3501baa9726e21cb8c9beb19dadbbce0ff3 (patch) | |
tree | 8a88c140da6b3acf7952d38c3e594f8993e9c5f4 /main/py-setuptools | |
parent | 5f2406c524c6f398b76f71ba5fa62a20f24ddf9d (diff) | |
download | aports-bbb7e3501baa9726e21cb8c9beb19dadbbce0ff3.tar.bz2 aports-bbb7e3501baa9726e21cb8c9beb19dadbbce0ff3.tar.xz |
main/py-setuptools: fix building
it requires running the bootstrap script first
Diffstat (limited to 'main/py-setuptools')
-rw-r--r-- | main/py-setuptools/APKBUILD | 14 | ||||
-rw-r--r-- | main/py-setuptools/fix-659.patch | 44 |
2 files changed, 6 insertions, 52 deletions
diff --git a/main/py-setuptools/APKBUILD b/main/py-setuptools/APKBUILD index ff7b9bf09c..09e69f5af5 100644 --- a/main/py-setuptools/APKBUILD +++ b/main/py-setuptools/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-setuptools _pkgname=${pkgname#py-} pkgver=24.0.3 -pkgrel=0 +pkgrel=1 pkgdesc="A collection of enhancements to the Python distutils" url="http://pypi.python.org/pypi/setuptools" arch="noarch" @@ -13,12 +13,13 @@ makedepends="python-dev" install="" subpackages="" source="${_pkgname}-${pkgver}.tar.gz::https://github.com/pypa/${_pkgname}/archive/v${pkgver}.tar.gz - fix-659.patch" + " builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" + python bootstrap.py || return 1 python setup.py build || return 1 } @@ -30,9 +31,6 @@ package() { rm -f "$pkgdir"/usr/bin/easy_install || return 1 } -md5sums="11472d17f777b83757681d0608ae9aee setuptools-24.0.3.tar.gz -d17f39a9f6d975d2e6e46c0aa875ed67 fix-659.patch" -sha256sums="b342d2d457a678d558e51aaab79640360d350b0044816259b3085e079adcbdcf setuptools-24.0.3.tar.gz -fa08bd5496d05cce655b745f6d99381153b114fb285272e07504949ec0d41077 fix-659.patch" -sha512sums="f664e1feb417e2eb0f8658ee0f2cb3b308b3e11d5dde6b67cefc7549b0693be268343fd508e654ea0b8080658373d260e537b54ec18499c35e078fd6b79de952 setuptools-24.0.3.tar.gz -c6495875aef65896a4017d8426b8ef6fd25c1993751e8ef531520f9ed5561d55b43b80b3e12897a598110a6190b6fa788bcd459d6c5871b83db32596b712591f fix-659.patch" +md5sums="11472d17f777b83757681d0608ae9aee setuptools-24.0.3.tar.gz" +sha256sums="b342d2d457a678d558e51aaab79640360d350b0044816259b3085e079adcbdcf setuptools-24.0.3.tar.gz" +sha512sums="f664e1feb417e2eb0f8658ee0f2cb3b308b3e11d5dde6b67cefc7549b0693be268343fd508e654ea0b8080658373d260e537b54ec18499c35e078fd6b79de952 setuptools-24.0.3.tar.gz" diff --git a/main/py-setuptools/fix-659.patch b/main/py-setuptools/fix-659.patch deleted file mode 100644 index 4035541df1..0000000000 --- a/main/py-setuptools/fix-659.patch +++ /dev/null @@ -1,44 +0,0 @@ -https://github.com/pypa/setuptools/issues/659 - -diff -ru setuptools-24.0.2.orig/pkg_resources/__init__.py setuptools-24.0.2/pkg_resources/__init__.py ---- setuptools-24.0.2.orig/pkg_resources/__init__.py 2016-07-04 18:22:36.000000000 +0300 -+++ setuptools-24.0.2/pkg_resources/__init__.py 2016-07-19 10:33:34.030885550 +0300 -@@ -988,9 +988,9 @@ - """ - extra_evals = ( - req.marker.evaluate({'extra': extra}) -- for extra in self.get(req, ()) + (None,) -+ for extra in self.get(req, ()) - ) -- return not req.marker or any(extra_evals) -+ return not req.marker or any(extra_evals) or req.marker.evaluate() - - - class Environment(object): -diff -ru setuptools-24.0.2.orig/pkg_resources/tests/test_resources.py setuptools-24.0.2/pkg_resources/tests/test_resources.py ---- setuptools-24.0.2.orig/pkg_resources/tests/test_resources.py 2016-07-04 18:22:36.000000000 +0300 -+++ setuptools-24.0.2/pkg_resources/tests/test_resources.py 2016-07-19 10:33:34.030885550 +0300 -@@ -189,7 +189,7 @@ - def test_environment_marker_evaluation_called(self): - """ - If one package foo requires bar without any extras, -- markers should pass for bar without extras. -+ markers should pass for bar. - """ - parent_req, = parse_requirements("foo") - req, = parse_requirements("bar;python_version>='2'") -@@ -201,6 +201,14 @@ - req_extras = pkg_resources._ReqExtras({req: parent_req.extras}) - assert req_extras.markers_pass(req) - -+ # extra should not be present in the marker namespace if -+ # no markers were supplied -+ parent_req, = parse_requirements("foo") -+ req, = parse_requirements("bar;extra==''") -+ req_extras = pkg_resources._ReqExtras({req: parent_req.extras}) -+ with pytest.raises(packaging.markers.UndefinedEnvironmentName): -+ req_extras.markers_pass(req) -+ - def test_marker_evaluation_with_extras(self): - """Extras are also evaluated as markers at resolution time.""" - ad = pkg_resources.Environment([]) |