1 |
commit: 0030bb528b180f4571a18cec53469a276258327e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 12:12:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 14:06:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0030bb52 |
7 |
|
8 |
dev-python/qiskit-terra: Fix rustworkx support |
9 |
|
10 |
Fix qiskit-terra to support rustworkx, the new name of retworkx. |
11 |
|
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
.../{qiskit-terra-0.22.0.ebuild => qiskit-terra-0.22.0-r1.ebuild} | 5 +++++ |
15 |
1 file changed, 5 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild b/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild |
18 |
similarity index 97% |
19 |
rename from dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild |
20 |
rename to dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild |
21 |
index 7a0c507d8577..fd442eceacd3 100644 |
22 |
--- a/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild |
23 |
+++ b/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild |
24 |
@@ -128,6 +128,11 @@ distutils_enable_tests pytest |
25 |
# and an exact comparison of float switched to approximate comparison. |
26 |
#PATCHES=( "${FILESDIR}/qiskit-terra-0.19.2-test-corrections.patch" ) |
27 |
|
28 |
+src_prepare() { |
29 |
+ find -name '*.py' -exec sed -i -e 's:retworkx:rustworkx:' {} + || die |
30 |
+ distutils-r1_src_prepare |
31 |
+} |
32 |
+ |
33 |
python_test() { |
34 |
# We have to hide the source code directory so tests |
35 |
# do not use these, but instead the compiled library. |