Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/peewee/
Date: Thu, 18 Feb 2016 09:18:45
Message-Id: 1455786984.7dc3315bb017ceed89254dc9eaea6ce1059d823f.monsieurp@gentoo
1 commit: 7dc3315bb017ceed89254dc9eaea6ce1059d823f
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 09:15:55 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 09:16:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dc3315b
7
8 dev-python/peewee: Fix two errors.
9
10 * sed to remove the string "test_suite='tests'" from setup.py.
11 * Add -fno-strict-aliasing compile flag when compiling with python2.7.
12
13 Package-Manager: portage-2.2.26
14
15 dev-python/peewee/peewee-2.8.0.ebuild | 10 ++++++++++
16 1 file changed, 10 insertions(+)
17
18 diff --git a/dev-python/peewee/peewee-2.8.0.ebuild b/dev-python/peewee/peewee-2.8.0.ebuild
19 index 3d9a37b..aacf223 100644
20 --- a/dev-python/peewee/peewee-2.8.0.ebuild
21 +++ b/dev-python/peewee/peewee-2.8.0.ebuild
22 @@ -22,6 +22,16 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
23 # Req'd to ensure a unique tmp.db for each python impl running the testsuite.
24 DISTUTILS_IN_SOURCE_BUILD=1
25
26 +python_prepare_all() {
27 + sed -i -e "s#test_suite='tests',##g;" ./setup.py || die
28 + distutils-r1_python_prepare_all
29 +}
30 +
31 +python_compile() {
32 + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
33 + distutils-r1_python_compile
34 +}
35 +
36 python_compile_all() {
37 use doc && emake -C docs html
38 }