commit: e94f62bceecc242d72de315c54acc2f904f4f9a3 Author: Miezhiko <Miezhiko <AT> gmail <DOT> com> AuthorDate: Mon Nov 15 09:03:08 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Wed Dec 22 12:42:22 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e94f62bc
sci-libs/pytorch: use system pybind11 Signed-off-by: Miezhiko <Miezhiko <AT> gmail.com> Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sci-libs/pytorch/pytorch-1.10.0.ebuild | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sci-libs/pytorch/pytorch-1.10.0.ebuild b/sci-libs/pytorch/pytorch-1.10.0.ebuild index 1aa85911f..36d68fb14 100644 --- a/sci-libs/pytorch/pytorch-1.10.0.ebuild +++ b/sci-libs/pytorch/pytorch-1.10.0.ebuild @@ -47,7 +47,6 @@ https://github.com/google/XNNPACK/archive/79cd5f9e18ad0925ac9a050b00ea5a36230072 https://github.com/pytorch/kineto/archive/879a203d9bf554e95541679ddad6e0326f272dc1.tar.gz -> kineto-879a203d9bf554e95541679ddad6e0326f272dc1.tar.gz https://github.com/driazati/breakpad/archive/7d188f679d4ae0a5bd06408a3047d69ef8eef848.tar.gz -> breakpad-7d188f679d4ae0a5bd06408a3047d69ef8eef848.tar.gz https://github.com/mikey/linux-syscall-support/archive/e1e7b0ad8ee99a875b272c8e33e308472e897660.tar.gz -> lss-e1e7b0ad8ee99a875b272c8e33e308472e897660.tar.gz -https://github.com/pybind/pybind11/archive/8de7772cc72daca8e947b79b83fea46214931604.tar.gz -> pybind11-8de7772cc72daca8e947b79b83fea46214931604.tar.gz " # git clone [email protected]:pytorch/pytorch.git && cd pytorch @@ -197,8 +196,6 @@ src_prepare() { ln -sv "${WORKDIR}"/breakpad-7d188f679d4ae0a5bd06408a3047d69ef8eef848 third_party/breakpad || die rmdir third_party/breakpad/src/third_party/lss || die ln -sv "${WORKDIR}"/linux-syscall-support-e1e7b0ad8ee99a875b272c8e33e308472e897660 third_party/breakpad/src/third_party/lss || die - rmdir third_party/pybind11 || die - ln -sv "${WORKDIR}"/pybind11-8de7772cc72daca8e947b79b83fea46214931604 third_party/pybind11 || die if use cuda; then cd third_party/nccl/nccl || die @@ -264,6 +261,7 @@ src_configure() { -DUSE_MPI=$(usex mpi ON OFF) -DUSE_GLOO=$(usex gloo ON OFF) -DUSE_SYSTEM_EIGEN_INSTALL=ON + -DUSE_SYSTEM_PYBIND11=ON -DBUILD_NAMEDTENSOR=$(usex namedtensor ON OFF) -DBLAS=$(usex blas Generic Eigen) -DTP_BUILD_LIBUV=OFF @@ -321,8 +319,6 @@ src_install() { python_foreach_impl python_optimize fi - rm -rfv "${ED}/usr/include/pybind11" - find "${ED}/usr/${LIB}" -name "*.a" -exec rm -fv {} \; use test && rm -rfv "${ED}/usr/test" "${ED}"/usr/bin/test_{api,jit}
