File: 0006-no-distutils.patch

package info (click to toggle)
pysph 1.0~b2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,100 kB
  • sloc: python: 58,494; makefile: 212; cpp: 206; sh: 165
file content (40 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 21 Sep 2025 19:56:09 +0000
Subject: no-distutils

Forwarded: not-needed
---
 setup.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index f24b814..05306ee 100644
--- a/setup.py
+++ b/setup.py
@@ -148,7 +148,7 @@ def get_openmp_flags():
         print("Unable to import Cython, disabling OpenMP for now.")
         return [], [], False
 
-    from distutils.errors import CompileError, LinkError
+    from setuptools.errors import CompileError, LinkError
     import shutil
     import tempfile
     test_code = dedent("""
@@ -320,7 +320,7 @@ def get_basic_extensions():
         try:
             from Cython.Distutils import Extension
         except ImportError:
-            from distutils.core import Extension
+            from setuptools import Extension
         try:
             import numpy
         except ImportError:
@@ -598,7 +598,7 @@ def get_parallel_extensions():
         return []
 
     if MODE == 'info':
-        from distutils.core import Extension
+        from setuptools import Extension
         include_dirs = []
         mpi_inc_dirs, mpi_compile_args, mpi_link_args = [], [], []
         zoltan_include_dirs, zoltan_library_dirs = [], []