commit:     64ebc71df972b6d6d801bf9195a449ebc8cb4bf1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 29 09:07:46 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 09:07:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ebc71d

dev-python/matplotlib: fix installed _version.py

Closes: https://bugs.gentoo.org/854600
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{matplotlib-3.5.1-r1.ebuild => matplotlib-3.5.1-r2.ebuild}         | 3 +++
 .../{matplotlib-3.5.2-r2.ebuild => matplotlib-3.5.2-r3.ebuild}         | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-python/matplotlib/matplotlib-3.5.1-r1.ebuild 
b/dev-python/matplotlib/matplotlib-3.5.1-r2.ebuild
similarity index 98%
rename from dev-python/matplotlib/matplotlib-3.5.1-r1.ebuild
rename to dev-python/matplotlib/matplotlib-3.5.1-r2.ebuild
index 075c1245f88c..ce449939b282 100644
--- a/dev-python/matplotlib/matplotlib-3.5.1-r1.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.5.1-r2.ebuild
@@ -152,6 +152,9 @@ python_prepare_all() {
 #      from six import *
 #      EOF
 
+       # Affects installed _version.py, bug #854600
+       export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
        local PATCHES=(
                "${FILESDIR}"/matplotlib-3.3.3-disable-lto.patch
                "${FILESDIR}"/matplotlib-3.5.0-test.patch

diff --git a/dev-python/matplotlib/matplotlib-3.5.2-r2.ebuild 
b/dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild
similarity index 98%
rename from dev-python/matplotlib/matplotlib-3.5.2-r2.ebuild
rename to dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild
index 9f9c78422ea4..eb371d6af08c 100644
--- a/dev-python/matplotlib/matplotlib-3.5.2-r2.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.5.2-r3.ebuild
@@ -143,6 +143,9 @@ python_prepare_all() {
 #      from six import *
 #      EOF
 
+       # Affects installed _version.py, bug #854600
+       export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
        local PATCHES=(
                "${FILESDIR}"/matplotlib-3.3.3-disable-lto.patch
                "${FILESDIR}"/matplotlib-3.5.2-test.patch

Reply via email to