summaryrefslogtreecommitdiff
path: root/dev-python/simsimd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-03 03:04:04 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-03 03:04:04 +0000
commit212000bb5eabdfeb9a6e7a9b8f28e2740cae555a (patch)
treedbbe26e892147b95a24336cc44d791dbe0c0ce5f /dev-python/simsimd
parent37a097af13d675b83911ac006ee9ee22d2163f9a (diff)
gentoo auto-resync : 03:11:2024 - 03:04:03
Diffstat (limited to 'dev-python/simsimd')
-rw-r--r--dev-python/simsimd/Manifest2
-rw-r--r--dev-python/simsimd/simsimd-5.9.10.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/simsimd/Manifest b/dev-python/simsimd/Manifest
index 923e10bf11b8..4f3a4de0e1c1 100644
--- a/dev-python/simsimd/Manifest
+++ b/dev-python/simsimd/Manifest
@@ -1,7 +1,9 @@
DIST SimSIMD-5.8.0.gh.tar.gz 183559 BLAKE2B 2df0eac6eff58bc6c460b37cb7c523eae5d7e77d516bc7182ef3b39d033a1028d40536aaf99ad8ec8c28b4908ff873079ff0ca3d74acd1f763b0faaa5d4e225e SHA512 4e68050379dfe42e6c36a88a0defad0d941c873bda66cb4c65bd8367b07bca99a5c5d6eec7c8e39b15ad1b8e5bcc9dc7f43457d8552e9d72faefb88b03ad6f9b
+DIST SimSIMD-5.9.10.gh.tar.gz 204187 BLAKE2B fdfdd6bb1473a60fd878a819f9d848bf90e9d35625c6112407e5af064d0b2ac80dedf3f7f0762dd40cc7bf2e79ddaee5baa8c708ff99ae98c8dfa9eb90853491 SHA512 7b4693d6513e01d486496ce46edf1a342d3f28e64b72f29bc6a0a8489e7be53056122d17b2dd9df297f3eb317260eff102aea7c49f90ca3a52485f289452f9cd
DIST SimSIMD-5.9.6.gh.tar.gz 201831 BLAKE2B 4a3af9caf6eceb98faac93fa4bb5cea56b7bac3f128022c28f5f56504441c16326552c1ee22a1fbaad8740434060ff4c1c47dd18d83134fdff976897df83ede6 SHA512 1c149c622a71feca1dcef99d626fbb080cdaacac7c0b333362220d733a696bc58a5c1952025ad5d13c4bdc33060ebe3f00d9bf8da9ece283c148dac70d32d5a3
DIST SimSIMD-5.9.9.gh.tar.gz 204054 BLAKE2B 245c001d5e44a58b42034bf6c528744a652b49a033e6c59708baf4ead498d24662d6e4ee3bddcbdab427a7db1e8db9ffa52d4b6b6640ea57dd2b0593b61b7c72 SHA512 386513eeb2f1680d265c54fb69935503561e7b02c9a8c133f4d5da34f792956b3794b7033b648852e368356992ffd081858d1ca197da0274cd493512f4431042
EBUILD simsimd-5.8.0.ebuild 1264 BLAKE2B d5f4f15ef16d9d7aad868bbc93a0c91869cd28276f5fdd13a177a73bd9c326631967bb463d1472935862187941f0b9533f418c51f1976b9bb55e08a1e99394ab SHA512 7f9a7b4254b3917146f8f47cc61d49102a2dfba19c1f82594d39d09d55fe85dfc482646910b5c9d05c862c77a044720cd37b0f6aca090af3d41bc7eeae7033cc
+EBUILD simsimd-5.9.10.ebuild 1264 BLAKE2B d5f4f15ef16d9d7aad868bbc93a0c91869cd28276f5fdd13a177a73bd9c326631967bb463d1472935862187941f0b9533f418c51f1976b9bb55e08a1e99394ab SHA512 7f9a7b4254b3917146f8f47cc61d49102a2dfba19c1f82594d39d09d55fe85dfc482646910b5c9d05c862c77a044720cd37b0f6aca090af3d41bc7eeae7033cc
EBUILD simsimd-5.9.6.ebuild 1264 BLAKE2B d5f4f15ef16d9d7aad868bbc93a0c91869cd28276f5fdd13a177a73bd9c326631967bb463d1472935862187941f0b9533f418c51f1976b9bb55e08a1e99394ab SHA512 7f9a7b4254b3917146f8f47cc61d49102a2dfba19c1f82594d39d09d55fe85dfc482646910b5c9d05c862c77a044720cd37b0f6aca090af3d41bc7eeae7033cc
EBUILD simsimd-5.9.9.ebuild 1264 BLAKE2B d5f4f15ef16d9d7aad868bbc93a0c91869cd28276f5fdd13a177a73bd9c326631967bb463d1472935862187941f0b9533f418c51f1976b9bb55e08a1e99394ab SHA512 7f9a7b4254b3917146f8f47cc61d49102a2dfba19c1f82594d39d09d55fe85dfc482646910b5c9d05c862c77a044720cd37b0f6aca090af3d41bc7eeae7033cc
MISC metadata.xml 349 BLAKE2B 363881beeefbf65de7e0ab30fe5da642deefc0bbe2aeef0b4c3395a3c570f1043cb3d5e08927536a48597a44d447ff4853a5b15fffa65bbea5533377b0d6e413 SHA512 75756bd2cfb9adbdc59a2f4e3ed29c7d5daf53f427da661a9dbe6b3746ccb8ca031f650a7e505ef817b13c231cb725ca1e6eeb490be39b29e2883ca7d52f0368
diff --git a/dev-python/simsimd/simsimd-5.9.10.ebuild b/dev-python/simsimd/simsimd-5.9.10.ebuild
new file mode 100644
index 000000000000..3b7152ad7a71
--- /dev/null
+++ b/dev-python/simsimd/simsimd-5.9.10.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1 toolchain-funcs
+
+MY_P=SimSIMD-${PV}
+DESCRIPTION="Fastest SIMD-Accelerated Vector Similarity Functions for x86 and Arm"
+HOMEPAGE="
+ https://github.com/ashvardanian/SimSIMD/
+ https://pypi.org/project/simsimd/
+"
+# no sdist, as of 4.3.1
+# https://github.com/ashvardanian/SimSIMD/issues/113
+SRC_URI="
+ https://github.com/ashvardanian/SimSIMD/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openmp"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-repeat[${PYTHON_USEDEP}]
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+}
+
+src_prepare() {
+ sed -i -e '/-O3/d' setup.py || die
+ if ! use openmp; then
+ sed -i -e '/-fopenmp/d' setup.py || die
+ fi
+
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -p repeat scripts/test.py
+}