Skip to content

Commit 450336f

Browse files
committed
SQ scipy-1.10.1.patch
1 parent d92d3b6 commit 450336f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

graalpython/lib-graalpython/patches/scipy/scipy-1.10.1.patch

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ index ad18b245..b18f3b89 100644
1313
],
1414
diff --git a/mesonpy_wrapper.py b/mesonpy_wrapper.py
1515
new file mode 100644
16-
index 00000000..8527d7f7
16+
index 00000000..c5932c9e
1717
--- /dev/null
1818
+++ b/mesonpy_wrapper.py
19-
@@ -0,0 +1,75 @@
19+
@@ -0,0 +1,74 @@
2020
+import mesonpy
2121
+import os
2222
+import sys
@@ -27,13 +27,12 @@ index 00000000..8527d7f7
2727
+def get_flang_new_lib_dir():
2828
+ try:
2929
+ output = subprocess.check_output(['flang-new', '--version'])
30-
+ except (OSError, subprocess.CalledProcessError):
31-
+ pass
32-
+ else:
3330
+ flang_dir = output.splitlines()[-1].split()[-1].strip().decode("utf-8")
3431
+ return os.path.join(flang_dir, "flang-new"), os.path.normpath(os.path.join(flang_dir, '..', 'lib'))
35-
+ return None, None
36-
+
32+
+ except Exception as e:
33+
+ print(f"An exception occured while trying to get 'flang-new' library path: {e}")
34+
+ return None, None
35+
+
3736
+
3837
+def append_env_var(env, var, value):
3938
+ env[var] = '{} {}'.format(env.get(var, ''), value)

0 commit comments

Comments
 (0)