public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setproctitle/
Date: Thu, 12 Nov 2015 08:56:49 +0000 (UTC)	[thread overview]
Message-ID: <1447318605.fdf6b61a56b7e7c677b26ba14926a2cf85420d8b.jlec@gentoo> (raw)

commit:     fdf6b61a56b7e7c677b26ba14926a2cf85420d8b
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 12 08:48:11 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Nov 12 08:56:45 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdf6b61a

dev-python/setproctitle: Use eclass functions to obtain build variables

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 dev-python/setproctitle/setproctitle-1.1.8.ebuild | 17 ++++++++++++-----
 dev-python/setproctitle/setproctitle-1.1.9.ebuild | 17 ++++++++++-------
 2 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/dev-python/setproctitle/setproctitle-1.1.8.ebuild b/dev-python/setproctitle/setproctitle-1.1.8.ebuild
index 0b853ee..b028123 100644
--- a/dev-python/setproctitle/setproctitle-1.1.8.ebuild
+++ b/dev-python/setproctitle/setproctitle-1.1.8.ebuild
@@ -4,6 +4,7 @@
 
 EAPI=5
 
+# pypy doesn't get started in test run. Still required by www-servers/gunicorn
 PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} pypy )
 
 inherit distutils-r1 toolchain-funcs
@@ -18,8 +19,6 @@ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-
 IUSE="test"
 
 RDEPEND=""
-# on <py2.7 the test suite uses SkipTest from nose,
-# so we need to run it using nose.
 DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
 
 DOCS=( HISTORY.rst README.rst )
@@ -42,10 +41,18 @@ python_test() {
 
 	cd "${BUILD_DIR}" || die
 
+	if [[ ${EPYTHON} =~ pypy ]]; then
+		# The suite via the Makefile appears to not cater to pypy
+		return
+	else
+		CPPFLAGS="${CPPFLAGS} $(python_get_CFLAGS)"
+		LDLIBS="$(python_get_LIBS)"
+	fi
+
 	# prepare embedded executable
 	emake tests/pyrun CC="$(tc-getCC)" \
-		CPPFLAGS="${CPPFLAGS} $(python-config --cflags)" \
-		LDLIBS="${LDLIBS} $(python-config --libs)"
+		CPPFLAGS="${CPPFLAGS}" \
+		LDLIBS="${LDLIBS}"
 
-	nosetests || die "Tests fail with ${EPYTHON}"
+	nosetests --verbose || die "Tests fail with ${EPYTHON}"
 }

diff --git a/dev-python/setproctitle/setproctitle-1.1.9.ebuild b/dev-python/setproctitle/setproctitle-1.1.9.ebuild
index c86c655..e09507e 100644
--- a/dev-python/setproctitle/setproctitle-1.1.9.ebuild
+++ b/dev-python/setproctitle/setproctitle-1.1.9.ebuild
@@ -15,12 +15,10 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos \
-	~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="test"
 
 RDEPEND=""
-
 DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
 
 # Required for re-write of test suite
@@ -34,8 +32,13 @@ python_compile_all() {
 }
 
 python_test() {
-	# The suite via the Makefile appears to not cater to pypy
-	if [[ "${EPYTHON}" != pypy ]]; then
-		emake check
-	fi
+		# The suite via the Makefile appears to not cater to pypy
+	[[ ${EPYTHON} =~ pypy ]] && return
+
+	# prepare embedded executable
+	emake \
+		CC="$(tc-getCC)" \
+		PYINC="$(python_get_CFLAGS)" \
+		PYLIB="$(python_get_LIBS)" \
+		check
 }


             reply	other threads:[~2015-11-12  8:56 UTC|newest]

Thread overview: 105+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12  8:56 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-15 14:13 [gentoo-commits] repo/gentoo:master commit in: dev-python/setproctitle/ Arthur Zamarin
2025-03-15 14:13 Arthur Zamarin
2025-03-15 13:36 Arthur Zamarin
2025-03-15 13:16 Arthur Zamarin
2025-03-15 13:16 Arthur Zamarin
2025-03-15 12:25 Arthur Zamarin
2025-02-23  3:23 Michał Górny
2025-01-10 11:19 Michał Górny
2025-01-10  5:52 Sam James
2024-12-16  7:51 Arthur Zamarin
2024-12-14 17:18 Arthur Zamarin
2024-12-14 12:57 Arthur Zamarin
2024-12-14 12:47 Sam James
2024-12-14 11:49 Sam James
2024-12-14 11:49 Sam James
2024-12-14 10:30 Arthur Zamarin
2024-11-28  7:23 Sam James
2024-11-18 11:20 Michał Górny
2024-11-18  5:25 Michał Górny
2024-10-09 10:16 Sam James
2024-09-06 15:26 Arthur Zamarin
2024-06-09  9:21 Petr Vaněk
2023-11-05 20:58 Michał Górny
2023-11-05 19:25 Arthur Zamarin
2023-11-05 19:25 Arthur Zamarin
2023-11-05 19:25 Arthur Zamarin
2023-11-05 19:25 Arthur Zamarin
2023-11-05 19:25 Arthur Zamarin
2023-11-05 19:23 Arthur Zamarin
2023-11-05 19:17 Arthur Zamarin
2023-11-05 19:08 Arthur Zamarin
2023-10-04  5:51 Michał Górny
2023-05-26 21:12 Arthur Zamarin
2023-05-04 16:56 Michał Górny
2022-08-30 19:09 Michał Górny
2022-08-30 18:43 Jakov Smolić
2022-08-30 17:40 Arthur Zamarin
2022-08-30 17:22 Arthur Zamarin
2022-08-30 17:08 Jakov Smolić
2022-08-30 17:06 Arthur Zamarin
2022-08-30 16:45 Arthur Zamarin
2022-08-30 16:42 Jakov Smolić
2022-08-30 16:38 Arthur Zamarin
2022-08-30 16:33 Arthur Zamarin
2022-08-12 11:23 Arthur Zamarin
2022-08-05  6:31 Arthur Zamarin
2022-07-29 10:26 Arthur Zamarin
2022-05-27 19:55 Michał Górny
2022-05-27 11:02 Jakov Smolić
2022-05-27  9:41 Jakov Smolić
2022-05-27  9:41 Jakov Smolić
2022-05-27  9:41 Jakov Smolić
2022-05-27  9:33 Jakov Smolić
2022-05-27  9:33 Jakov Smolić
2022-05-27  9:12 Jakov Smolić
2022-05-27  9:07 Jakov Smolić
2022-05-18 16:59 Michał Górny
2022-05-05  2:40 WANG Xuerui
2022-04-25 18:41 Sam James
2022-04-15  6:19 Arthur Zamarin
2021-07-27 23:11 Marek Szuba
2021-05-06 18:45 Michał Górny
2021-02-26 21:07 Michał Górny
2021-02-26 17:34 Sergei Trofimovich
2021-02-26 13:53 Sam James
2021-02-26 10:12 Agostino Sarubbo
2021-02-26  8:09 Agostino Sarubbo
2021-02-25 18:58 Sam James
2021-02-25  1:08 Sam James
2021-02-24 22:07 Sam James
2021-02-24 22:05 Sam James
2021-01-23  8:55 Michał Górny
2021-01-10 14:30 Sam James
2021-01-08  7:24 Sergei Trofimovich
2021-01-08  0:58 Sam James
2021-01-07 12:14 Sam James
2021-01-07  1:12 Sam James
2021-01-07  1:08 Sam James
2021-01-07  0:58 Sam James
2021-01-06 10:59 Sam James
2020-12-27 12:51 Sergei Trofimovich
2020-12-27 12:32 Sergei Trofimovich
2020-12-27 12:28 Sergei Trofimovich
2020-12-27 11:38 Sergei Trofimovich
2020-12-27  4:47 Sam James
2020-12-27  4:29 Sam James
2020-12-26  2:20 Sam James
2020-12-04  7:58 Michał Górny
2020-11-30 21:12 Sergei Trofimovich
2020-09-28 17:41 Sergei Trofimovich
2020-08-18  8:04 Michał Górny
2020-06-12 15:40 Michał Górny
2020-05-17  5:40 Michał Górny
2020-03-25 13:59 Michał Górny
2020-03-25 13:59 Michał Górny
2019-12-30 21:54 Piotr Karbowski
2019-12-03  3:02 Aaron Bauman
2017-06-28  9:35 Alexis Ballier
2017-05-02 17:43 Michał Górny
2017-02-13  8:49 Zac Medico
2016-11-10  0:14 Sebastian Pipping
2016-07-16 14:08 Patrice Clement
2015-11-09 21:51 Pacho Ramos
2015-08-31 10:57 Ian Delaney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447318605.fdf6b61a56b7e7c677b26ba14926a2cf85420d8b.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox