File: jit_avoid_distutils.patch

package info (click to toggle)
dolfin 2019.2.0~legacy20240219.1c52e83-21
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 32,012 kB
  • sloc: xml: 104,040; cpp: 102,227; python: 24,356; sh: 460; makefile: 330; javascript: 226
file content (13 lines) | stat: -rw-r--r-- 554 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/python/dolfin/jit/pybind11jit.py b/python/dolfin/jit/pybind11jit.py
index d7a6e3fd5..7dda881d7 100644
--- a/python/dolfin/jit/pybind11jit.py
+++ b/python/dolfin/jit/pybind11jit.py
@@ -42,7 +42,7 @@ def compile_cpp_code(cpp_code, **kwargs):
 
     # Set compiler/build options
     # FIXME: need to locate Python libs and pybind11
-    from distutils import sysconfig
+    import sysconfig
     params = dijitso.params.default_params()
     pyversion = "python" + sysconfig.get_config_var("LDVERSION")
     params['cache']['lib_prefix'] = ""