[packages/python-matplotlib] - rel 6; fix build with python 3.8
arekm
arekm at pld-linux.org
Tue Oct 29 14:15:00 CET 2019
commit 17b19f406af6361bdcd6a81defda65141a35c32c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Oct 29 14:14:52 2019 +0100
- rel 6; fix build with python 3.8
py38.patch | 26 ++++++++++++++++++++++++++
python-matplotlib.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/python-matplotlib.spec b/python-matplotlib.spec
index 989799e..bd2632e 100644
--- a/python-matplotlib.spec
+++ b/python-matplotlib.spec
@@ -14,13 +14,14 @@ Summary: Matlab(TM) style Python plotting package
Summary(pl.UTF-8): Pakiet do rysowania w Pythonie podobny do Matlaba(TM)
Name: python-%{module}
Version: 1.5.3
-Release: 5
+Release: 6
License: PSF
Group: Libraries/Python
#Source0Download: https://github.com/matplotlib/matplotlib/releases
# TODO: https://github.com/matplotlib/matplotlib/archive/v%{version}/matplotlib-%{version}.tar.gz
Source0: https://github.com/matplotlib/matplotlib/archive/v%{version}.tar.gz
# Source0-md5: 079d9d8cd9910e00ed1236fb44a518a7
+Patch0: py38.patch
URL: https://matplotlib.org/
BuildRequires: agg-devel
BuildRequires: freetype-devel >= 1:2.3
@@ -125,6 +126,7 @@ przechodzących z Matlaba.
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
export CFLAGS="%{rpmcflags}"
diff --git a/py38.patch b/py38.patch
new file mode 100644
index 0000000..6f171e5
--- /dev/null
+++ b/py38.patch
@@ -0,0 +1,26 @@
+--- matplotlib-1.5.3/setup.py~ 2016-09-09 04:50:50.000000000 +0200
++++ matplotlib-1.5.3/setup.py 2019-10-29 14:13:54.317435965 +0100
+@@ -12,23 +12,6 @@ from setuptools.command.test import test
+
+ import sys
+
+-# distutils is breaking our sdists for files in symlinked dirs.
+-# distutils will copy if os.link is not available, so this is a hack
+-# to force copying
+-import os
+-try:
+- del os.link
+-except AttributeError:
+- pass
+-
+-# This 'if' statement is needed to prevent spawning infinite processes
+-# on Windows
+-if __name__ == '__main__':
+- # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
+- # update it when the contents of directories change.
+- if os.path.exists('MANIFEST'):
+- os.remove('MANIFEST')
+-
+ try:
+ from setuptools import setup
+ except ImportError:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-matplotlib.git/commitdiff/17b19f406af6361bdcd6a81defda65141a35c32c
More information about the pld-cvs-commit
mailing list