summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-05 05:49:19 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-05 05:49:19 +0100
commit0977b6c7e1a095ea3723570ca70e541e0c924d32 (patch)
treea6b0e0b2cffc29a24472430e8fa516123a2541b8 /dev-python/wrapt
parentdev-python/wrapt: Fix test failures on pypy3 (diff)
downloadgentoo-0977b6c7e1a095ea3723570ca70e541e0c924d32.tar.gz
gentoo-0977b6c7e1a095ea3723570ca70e541e0c924d32.tar.bz2
gentoo-0977b6c7e1a095ea3723570ca70e541e0c924d32.zip
dev-python/wrapt: Add USE=native-extensions
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/wrapt')
-rw-r--r--dev-python/wrapt/metadata.xml6
-rw-r--r--dev-python/wrapt/wrapt-1.15.0.ebuild3
2 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/wrapt/metadata.xml b/dev-python/wrapt/metadata.xml
index caafce82fa5b..af7d6a529c40 100644
--- a/dev-python/wrapt/metadata.xml
+++ b/dev-python/wrapt/metadata.xml
@@ -9,4 +9,10 @@
<remote-id type="github">GrahamDumpleton/wrapt</remote-id>
<remote-id type="pypi">wrapt</remote-id>
</upstream>
+ <use>
+ <flag name="native-extensions">
+ Compiles native C extensions (speedups, instead of using python
+ fallback code).
+ </flag>
+ </use>
</pkgmetadata>
diff --git a/dev-python/wrapt/wrapt-1.15.0.ebuild b/dev-python/wrapt/wrapt-1.15.0.ebuild
index bd4f60798893..0983b6eac0c3 100644
--- a/dev-python/wrapt/wrapt-1.15.0.ebuild
+++ b/dev-python/wrapt/wrapt-1.15.0.ebuild
@@ -22,6 +22,7 @@ SRC_URI="
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="+native-extensions"
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
@@ -34,7 +35,7 @@ src_prepare() {
}
python_compile() {
- local -x WRAPT_INSTALL_EXTENSIONS=true
+ local -x WRAPT_INSTALL_EXTENSIONS=$(usex native-extensions true false)
distutils-r1_python_compile
}