1 |
commit: d8ad9d04865e1a1f4a6c754a1ec2017bca93dfec |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 11:44:30 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 14:06:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ad9d04 |
7 |
|
8 |
dev-python/qiskit-aer: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/qiskit-aer/Manifest | 1 - |
13 |
dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild | 92 -------------------------- |
14 |
2 files changed, 93 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/qiskit-aer/Manifest b/dev-python/qiskit-aer/Manifest |
17 |
index c2048858b315..f31df6058b1b 100644 |
18 |
--- a/dev-python/qiskit-aer/Manifest |
19 |
+++ b/dev-python/qiskit-aer/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST qiskit-aer-0.10.3.gh.tar.gz 6657490 BLAKE2B 443f7df2259c720fb93a60659da9b1cded25f9dbdf585bd0322e9f4effe4c5955daf6587d6c3964ab4a7e4a8bf6270f857abae1cf4e6b0718801daa6a96c2aec SHA512 c882624bac373566b003a01fffa6963d4ad8796ce18786b50ef85350daac26814c147b36067eb6fce4f264919b3680246e767b5c13ac338817fd394620392079 |
22 |
DIST qiskit-aer-0.11.1.gh.tar.gz 6699343 BLAKE2B 3795e1f71914bbc0074a2eac10a82a28f3171d50f292a13dcb705f62daa5fa332a1eabd52391c1b168a822ca6428feb79fe08bb7c93cfd2f7ee5b0d38fed012b SHA512 7880f2ee99f34eca285b9e7cd096981db2f981d41c54881c4036e2745e4af1185b740d93cd157b83ce4adaf8c207c9c063b86e9a1fa514d1388437d6f33e219f |
23 |
|
24 |
diff --git a/dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild b/dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild |
25 |
deleted file mode 100644 |
26 |
index 3fc6e2707460..000000000000 |
27 |
--- a/dev-python/qiskit-aer/qiskit-aer-0.10.3.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,92 +0,0 @@ |
30 |
-# Copyright 2022 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=8 |
34 |
- |
35 |
-DISTUTILS_USE_PEP517=setuptools |
36 |
-PYTHON_COMPAT=( python3_{8..10} ) |
37 |
- |
38 |
-inherit distutils-r1 |
39 |
- |
40 |
-DESCRIPTION="High performance simulator for quantum circuits that includes noise models" |
41 |
-HOMEPAGE="https://github.com/Qiskit/qiskit-aer" |
42 |
-SRC_URI="https://github.com/Qiskit/qiskit-aer/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" |
43 |
- |
44 |
-LICENSE="Apache-2.0" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~amd64" |
47 |
- |
48 |
-# The reference implementation of BLAS/CBLAS is not compatible with qiskit-aer right now, |
49 |
-# because importing library causes an error. |
50 |
-# /usr/lib/python3.9/site-packages/qiskit/providers/aer/backends/controller_wrappers.cpython-39-x86_64-linux-gnu.so: undefined symbol: slamch_ |
51 |
-# Using sci-libs/openblas instead here, |
52 |
-# with the option to switch between reference/openblas implementation runtime (eselect-ldso). |
53 |
-COMMON_DEPEND=" |
54 |
- >=dev-python/numpy-1.16.3[${PYTHON_USEDEP}] |
55 |
- >=dev-cpp/nlohmann_json-3.1.1 |
56 |
- >=dev-libs/spdlog-1.5.0 |
57 |
- >=dev-cpp/muParserX-4.0.8 |
58 |
- virtual/cblas[eselect-ldso] |
59 |
- sci-libs/openblas[eselect-ldso]" |
60 |
- |
61 |
-BDEPEND=" |
62 |
- ${COMMON_DEPEND} |
63 |
- >dev-util/cmake-3.17 |
64 |
- >=dev-python/scikit-build-0.11.0[${PYTHON_USEDEP}] |
65 |
- >=dev-python/pybind11-2.6[${PYTHON_USEDEP}] |
66 |
- test? ( |
67 |
- dev-python/ddt[${PYTHON_USEDEP}] |
68 |
- dev-python/fixtures[${PYTHON_USEDEP}] |
69 |
- )" |
70 |
- |
71 |
-RDEPEND=" |
72 |
- ${COMMON_DEPEND} |
73 |
- >=dev-python/qiskit-terra-0.19.1[${PYTHON_USEDEP}] |
74 |
- >=dev-python/scipy-1.0[${PYTHON_USEDEP}]" |
75 |
- |
76 |
-distutils_enable_tests pytest |
77 |
- |
78 |
-# Remove cmake dependency from setup.py because of |
79 |
-# invalid dependency description. We put this dependency check in BDEPEND. |
80 |
-PATCHES=( "${FILESDIR}/qiskit-aer-0.10.3-remove-cmake-dependency.patch" ) |
81 |
- |
82 |
-check_openblas() { |
83 |
- local libdir=$(get_libdir) me="openblas" |
84 |
- |
85 |
- # check blas |
86 |
- local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2) |
87 |
- if [[ ${current_blas} != "${me}" ]]; then |
88 |
- eerror "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]." |
89 |
- eerror "To use qiskit-aer, you have to issue (as root):" |
90 |
- eerror "\t eselect blas set ${libdir} ${me}" |
91 |
- return 1 |
92 |
- fi |
93 |
- return 0 |
94 |
-} |
95 |
- |
96 |
-pkg_setup() { |
97 |
- if use test; then |
98 |
- check_openblas |
99 |
- if [ $? -ne 0 ]; then |
100 |
- die "Set blas implementation to openblas using 'eselect blas set openblas'!" |
101 |
- fi |
102 |
- fi |
103 |
-} |
104 |
- |
105 |
-python_prepare_all() { |
106 |
- export DISABLE_CONAN="ON" |
107 |
- export DISABLE_DEPENDENCY_INSTALL="ON" |
108 |
- distutils-r1_python_prepare_all |
109 |
-} |
110 |
- |
111 |
-python_test() { |
112 |
- # We have to hide the source code directory so tests |
113 |
- # do not use these, but instead the compiled library. |
114 |
- mv qiskit qiskit.hidden || die |
115 |
- epytest |
116 |
- mv qiskit.hidden qiskit || die |
117 |
-} |
118 |
- |
119 |
-pkg_postinst() { |
120 |
- check_openblas |
121 |
-} |