From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 715AD15800F for ; Tue, 3 Jan 2023 06:22:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A68D9E092C; Tue, 3 Jan 2023 06:22:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7A7CE092C for ; Tue, 3 Jan 2023 06:22:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA118335DB2 for ; Tue, 3 Jan 2023 06:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C7D16F2 for ; Tue, 3 Jan 2023 06:22:15 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1672726798.4590c8b8fa3b26439ac9336243331863a4ed2c52.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/caffe2/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/caffe2/caffe2-1.12.0-r1.ebuild sci-libs/caffe2/caffe2-1.12.0.ebuild X-VCS-Directories: sci-libs/caffe2/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 4590c8b8fa3b26439ac9336243331863a4ed2c52 X-VCS-Branch: master Date: Tue, 3 Jan 2023 06:22:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8dcb0fa9-a0f4-41c6-ad3e-8ef0e41dae1c X-Archives-Hash: 3673d1cd66722627fb717306b9494492 commit: 4590c8b8fa3b26439ac9336243331863a4ed2c52 Author: Alfredo Tupone gentoo org> AuthorDate: Tue Jan 3 06:16:54 2023 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Tue Jan 3 06:19:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4590c8b8 sci-libs/caffe2: inherit single and mv api in python dir Signed-off-by: Alfredo Tupone gentoo.org> ...affe2-1.12.0.ebuild => caffe2-1.12.0-r1.ebuild} | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sci-libs/caffe2/caffe2-1.12.0.ebuild b/sci-libs/caffe2/caffe2-1.12.0-r1.ebuild similarity index 91% rename from sci-libs/caffe2/caffe2-1.12.0.ebuild rename to sci-libs/caffe2/caffe2-1.12.0-r1.ebuild index 035c81fabb3a..8f6e1f87386f 100644 --- a/sci-libs/caffe2/caffe2-1.12.0.ebuild +++ b/sci-libs/caffe2/caffe2-1.12.0-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) -inherit python-r1 cmake flag-o-matic +inherit python-single-r1 cmake flag-o-matic MYPN=pytorch MYP=${MYPN}-${PV} @@ -43,7 +43,9 @@ RDEPEND=" ) ffmpeg? ( media-video/ffmpeg:= ) nnpack? ( sci-libs/NNPACK ) - numpy? ( dev-python/numpy[${PYTHON_USEDEP}] ) + numpy? ( $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ') ) opencl? ( virtual/opencl ) opencv? ( media-libs/opencv:= ) qnnpack? ( sci-libs/QNNPACK ) @@ -57,8 +59,10 @@ DEPEND=" dev-libs/FXdiv dev-libs/pocketfft dev-libs/flatbuffers - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/pybind11[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}] + ') " S="${WORKDIR}"/${MYP} @@ -91,7 +95,6 @@ src_configure() { ewarn "or by running /opt/cuda/extras/demo_suite/deviceQuery | grep 'CUDA Capability'" fi - python_setup local mycmakeargs=( -DBUILD_CUSTOM_PROTOBUF=OFF -DBUILD_SHARED_LIBS=ON @@ -144,11 +147,6 @@ src_configure() { cmake_src_configure } -python_install() { - python_domodule python/caffe2 - python_domodule python/torch -} - src_install() { cmake_src_install @@ -156,8 +154,10 @@ src_install() { doins "${BUILD_DIR}"/CMakeCache.txt rm -rf python - mkdir -p python/torch || die + mkdir -p python/torch/include || die mv "${ED}"/usr/lib/python*/site-packages/caffe2 python/ || die + mv "${ED}"/usr/include/torch python/torch/include || die cp torch/version.py python/torch/ || die - python_foreach_impl python_install + python_domodule python/caffe2 + python_domodule python/torch }