summaryrefslogtreecommitdiff
path: root/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-03-25 06:32:58 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-03-25 06:32:58 +0000
commit935cdcd265ec87255da284065295400ea1cb67ea (patch)
treea8cc055b664128d0355ac62c51fc2e570ccc4f16 /dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
parent395936e1074a842fd6d75f3b6d9c43357d5b32ed (diff)
downloadbaldeagleos-repo-935cdcd265ec87255da284065295400ea1cb67ea.tar.gz
baldeagleos-repo-935cdcd265ec87255da284065295400ea1cb67ea.tar.xz
baldeagleos-repo-935cdcd265ec87255da284065295400ea1cb67ea.zip
Adding metadata
Diffstat (limited to 'dev-python/memory-allocator/memory-allocator-0.1.4.ebuild')
-rw-r--r--dev-python/memory-allocator/memory-allocator-0.1.4.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild b/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
new file mode 100644
index 000000000000..60e8ba8918ee
--- /dev/null
+++ b/dev-python/memory-allocator/memory-allocator-0.1.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8,9,10,11,12} )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+inherit distutils-r1 pypi
+
+DESCRIPTION="An extension class for memory allocation in cython"
+HOMEPAGE="https://pypi.org/project/memory-allocator/
+ https://github.com/sagemath/memory_allocator"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+
+python_test() {
+ # The test script tries to "import memory_allocator.test" which, so
+ # long as a memory_allocator directory exists inside CWD, will look
+ # for a memory_allocator/test.py there. But there is no such file;
+ # the "test" module is a compiled extension. To let the search fall
+ # back to the correct location, we temporarily rename the directory
+ # that misleads it.
+ mv memory_allocator mv_memory_allocator || die
+ ${EPYTHON} test.py || die
+ mv mv_memory_allocator memory_allocator || die
+}