Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/six/, dev-python/six/files/
Date: Wed, 27 Jan 2016 04:18:01
Message-Id: 1453868232.f520d401bb03a3186ec057ff2cd188077e656899.floppym@gentoo
1 commit: f520d401bb03a3186ec057ff2cd188077e656899
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 04:16:18 2016 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 27 04:17:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f520d401
7
8 dev-python/six: Force usage of distutils over setuptools
9
10 Avoids circular dependency.
11
12 Bug: https://bugs.gentoo.org/572792
13
14 Package-Manager: portage-2.2.27_p49
15
16 dev-python/six/files/1.10.0-no-setuptools.patch | 22 ++++++++++++++++++++++
17 dev-python/six/six-1.10.0.ebuild | 6 +++---
18 dev-python/six/six-1.9.0-r1.ebuild | 6 +++---
19 3 files changed, 28 insertions(+), 6 deletions(-)
20
21 diff --git a/dev-python/six/files/1.10.0-no-setuptools.patch b/dev-python/six/files/1.10.0-no-setuptools.patch
22 new file mode 100644
23 index 0000000..d430918
24 --- /dev/null
25 +++ b/dev-python/six/files/1.10.0-no-setuptools.patch
26 @@ -0,0 +1,22 @@
27 +Force distutils to avoid depending on setuptools
28 +
29 +distutils and setuptools have differing behavior in regard to egg-info
30 +directories versus files, so we need to ensure that no automagic behavior
31 +occurs here.
32 +
33 +We cannot hard-depend on setuptools due to a circular dependency.
34 +
35 +diff --git a/setup.py b/setup.py
36 +--- a/setup.py
37 ++++ b/setup.py
38 +@@ -1,9 +1,6 @@
39 + from __future__ import with_statement
40 +
41 +-try:
42 +- from setuptools import setup
43 +-except ImportError:
44 +- from distutils.core import setup
45 ++from distutils.core import setup
46 +
47 + import six
48 +
49
50 diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild
51 index cb6a767..baf5f47 100644
52 --- a/dev-python/six/six-1.10.0.ebuild
53 +++ b/dev-python/six/six-1.10.0.ebuild
54 @@ -1,4 +1,4 @@
55 -# Copyright 1999-2015 Gentoo Foundation
56 +# Copyright 1999-2016 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Id$
59
60 @@ -18,13 +18,13 @@ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc
61 IUSE="doc test"
62
63 DEPEND="
64 - dev-python/setuptools[${PYTHON_USEDEP}]
65 doc? ( dev-python/sphinx )
66 test? ( >=dev-python/pytest-2.2.0[${PYTHON_USEDEP}] )"
67
68 PATCHES=(
69 + "${FILESDIR}"/1.10.0-no-setuptools.patch
70 "${FILESDIR}"/1.9.0-mapping.patch
71 - )
72 +)
73
74 python_prepare_all() {
75 # https://bitbucket.org/gutworth/six/issues/139/
76
77 diff --git a/dev-python/six/six-1.9.0-r1.ebuild b/dev-python/six/six-1.9.0-r1.ebuild
78 index 6ab5558..7553b1d 100644
79 --- a/dev-python/six/six-1.9.0-r1.ebuild
80 +++ b/dev-python/six/six-1.9.0-r1.ebuild
81 @@ -1,4 +1,4 @@
82 -# Copyright 1999-2015 Gentoo Foundation
83 +# Copyright 1999-2016 Gentoo Foundation
84 # Distributed under the terms of the GNU General Public License v2
85 # $Id$
86
87 @@ -18,14 +18,14 @@ KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh
88 IUSE="doc test"
89
90 DEPEND="
91 - dev-python/setuptools[${PYTHON_USEDEP}]
92 doc? ( dev-python/sphinx )
93 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
94
95 PATCHES=(
96 + "${FILESDIR}"/1.10.0-no-setuptools.patch
97 "${FILESDIR}"/${PV}-mapping.patch
98 "${FILESDIR}"/${P}-winreg.patch
99 - )
100 +)
101
102 python_compile_all() {
103 use doc && emake -C documentation html