aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-10-06 00:05:21 -0700
committerZac Medico <zmedico@gentoo.org>2016-10-06 08:37:59 -0700
commitc6b72853a6de8b71d1b5cd789a12aa934f7ce7c4 (patch)
treea9710e45e8beb0e65d21944837c95d92092d0906 /.travis.yml
parenteinstalldocs: check whether default docs are indeed files (diff)
downloadportage-c6b72853a6de8b71d1b5cd789a12aa934f7ce7c4.tar.gz
portage-c6b72853a6de8b71d1b5cd789a12aa934f7ce7c4.tar.bz2
portage-c6b72853a6de8b71d1b5cd789a12aa934f7ce7c4.zip
setup.py: enable libc bindings optionally (bug 594744)
The libc bindings are optional, since ctypes is used as a fallback when they are not available. The libc bindings do not support cross- compilation, therefore it is useful to be able to build them conditionally. This patch adds an option to enable them conditionally, which the ebuild can use by adding the following code to the python_prepare_all function: if use native-extensions; then printf "[build_ext]\nportage-ext-modules=true" >> \ setup.cfg || die fi X-Gentoo-Bug: 594744 X-Gentoo-Bug-URL: https://bugs.gentoo.org/594744 Acked-by: Alexander Berntsen <bernalex@gentoo.org>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index c098c4da4..ded5893c8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,7 @@ python:
install: "pip install lxml"
script:
+ - printf "[build_ext]\nportage-ext-modules=true" >> setup.cfg
- ./setup.py test
- ./setup.py install --root=/tmp/install-root
# prevent repoman tests from trying to fetch metadata.xsd