summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/mpi4py/files/mpi4py-3.0.3-py38setup.patch')
-rw-r--r--dev-python/mpi4py/files/mpi4py-3.0.3-py38setup.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/mpi4py/files/mpi4py-3.0.3-py38setup.patch b/dev-python/mpi4py/files/mpi4py-3.0.3-py38setup.patch
new file mode 100644
index 000000000000..877486b40604
--- /dev/null
+++ b/dev-python/mpi4py/files/mpi4py-3.0.3-py38setup.patch
@@ -0,0 +1,25 @@
+From 36e77661b7a879f0ec1eb165c3b5cd0259eb8496 Mon Sep 17 00:00:00 2001
+From: Lisandro Dalcin <dalcinl@gmail.com>
+Date: Sat, 28 Sep 2019 18:10:52 +0300
+Subject: [PATCH] setup: Minor fix for Python 3.8
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 235b115..9c03c49 100644
+--- a/setup.py
++++ b/setup.py
+@@ -336,7 +336,7 @@ def configure_pyexe(exe, config_cmd):
+ libraries = []
+ library_dirs = []
+ link_args = []
+- if not sysconfig.get_config_var('Py_ENABLE_SHARED'):
++ if pyver >= (3, 8) or not cfg_vars.get('Py_ENABLE_SHARED'):
+ py_version = sysconfig.get_python_version()
+ py_abiflags = getattr(sys, 'abiflags', '')
+ libraries = ['python' + py_version + py_abiflags]
+--
+2.10.5
+