| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.17.3 | 8 | ~amd64 ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="Approximate Nearest Neighbors in C++/Python"
HOMEPAGE="https://github.com/spotify/annoy"
SRC_URI="https://github.com/spotify/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="test"
PROPERTIES="test_network"
BDEPEND="test? ( dev-python/h5py[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}] )"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Unable to synchronously open file
test/accuracy_test.py::test_glove_25
test/accuracy_test.py::test_fashion_mnist
)
python_prepare_all() {
sed -i "/setup_requires/d" setup.py || die "sed failed for setup.py"
distutils-r1_python_prepare_all
}
python_compile_all() {
use test && esetup.py build_ext --inplace
}
test? ( dev-python/h5py[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | annoy-1.17.3.gh.tar.gz | 673452 bytes | https://github.com/spotify/annoy/archive/v1.17.3.tar.gz |