mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/nanobind: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST nanobind-2.10.2.gh.tar.gz 931057 BLAKE2B aa682523097c4459142b989557d73d98a44ee58797a2cc1d4e783aeacbe0ba2839b1d8c83f80bce203400f4a88a4ae9862b638976908cd86178a5d132c7f42b4 SHA512 8b9a98f659a2b852946247b5ab415432715e19d7be3932b401f9a9c65c68a0e8e513bc785b77114b1c43c2eb2b932858981156a4b850c8a5160c1bd47f5ac337
|
||||
DIST nanobind-2.11.0.gh.tar.gz 938321 BLAKE2B f1db75b5a5535e178c04fa5da6874f07b7748b37238c410fb576f28a9405c9615455c6d9cc7ffb44f1745c5f86983c7d43bd0d4fb045795cb73cade0f4bc1508 SHA512 332960486a63803beb1764ae8399c618fa4c8b9224efe685d5e281582f78667fe2607708645ea011eef5ac81b7e31c7f21d7f753a670be9ed557bcada8d53b96
|
||||
DIST nanobind-2.12.0.gh.tar.gz 940575 BLAKE2B 8eee3f682ed9139704946946c3d58fd8c0060634aba382d709802e36a9d9798fd932d8933cce53ef019d9149c422bdee68d5d4664c302c84b102bb9deca9027e SHA512 a187f0efae1833b2caeaff41074a3d8fbd866ee1874aac088ffd5daf026aeaa6a73a8943b682bd39ef59b755e36b73a221eaf71343a28351dce0c8f284debdd9
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=scikit-build-core
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit cmake distutils-r1
|
||||
|
||||
DESCRIPTION="Tiny and efficient C++/Python bindings"
|
||||
HOMEPAGE="
|
||||
https://github.com/wjakob/nanobind/
|
||||
https://pypi.org/project/nanobind/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/wjakob/nanobind/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
DEPEND="
|
||||
>=dev-cpp/robin-map-1.3.0
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# XXX: nanobind installs a CMake config file which by default passes -Os
|
||||
# We currently patch around it in dev-python/pyopencl. In future, we
|
||||
# may want to add some override with Gentoo specific environment vars.
|
||||
DISTUTILS_ARGS=(
|
||||
-DNB_CREATE_INSTALL_RULES=ON
|
||||
-DNB_USE_SUBMODULE_DEPS=OFF
|
||||
-DNB_TEST=OFF
|
||||
)
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local mycmakeargs=(
|
||||
-DNB_CREATE_INSTALL_RULES=OFF
|
||||
-DNB_USE_SUBMODULE_DEPS=OFF
|
||||
-DNB_TEST=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
cmake_src_compile
|
||||
|
||||
cd "${BUILD_DIR}/tests" || die
|
||||
epytest
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=scikit-build-core
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit cmake distutils-r1
|
||||
|
||||
DESCRIPTION="Tiny and efficient C++/Python bindings"
|
||||
HOMEPAGE="
|
||||
https://github.com/wjakob/nanobind/
|
||||
https://pypi.org/project/nanobind/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/wjakob/nanobind/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
DEPEND="
|
||||
>=dev-cpp/robin-map-1.3.0
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# XXX: nanobind installs a CMake config file which by default passes -Os
|
||||
# We currently patch around it in dev-python/pyopencl. In future, we
|
||||
# may want to add some override with Gentoo specific environment vars.
|
||||
DISTUTILS_ARGS=(
|
||||
-DNB_CREATE_INSTALL_RULES=ON
|
||||
-DNB_USE_SUBMODULE_DEPS=OFF
|
||||
-DNB_TEST=OFF
|
||||
)
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local mycmakeargs=(
|
||||
-DNB_CREATE_INSTALL_RULES=OFF
|
||||
-DNB_USE_SUBMODULE_DEPS=OFF
|
||||
-DNB_TEST=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
cmake_src_compile
|
||||
|
||||
cd "${BUILD_DIR}/tests" || die
|
||||
epytest
|
||||
}
|
||||
Reference in New Issue
Block a user