You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: meson.build
+15-7
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,21 @@ project(
18
18
],
19
19
)
20
20
21
+
# https://mesonbuild.com/Python-module.html
22
+
py_mod =import('python')
23
+
py3 = py_mod.find_installation(pure: false)
24
+
py3_dep = py3.dependency()
25
+
26
+
# Emit a warning for 32-bit Python installs on Windows; users are getting
27
+
# unexpected from-source builds there because we no longer provide wheels.
28
+
is_windows =host_machine.system() =='windows'
29
+
if is_windows and py3.has_variable('EXT_SUFFIX')
30
+
ext_suffix = py3.get_variable('EXT_SUFFIX')
31
+
if ext_suffix.contains('win32')
32
+
warning('You are building from source on a 32-bit Python install. SciPy does not provide 32-bit wheels; install 64-bit Python if you are having issues!')
33
+
endif
34
+
endif
35
+
21
36
cc =meson.get_compiler('c')
22
37
cpp =meson.get_compiler('cpp')
23
38
@@ -67,8 +82,6 @@ if ff.has_argument('-Wno-conversion')
0 commit comments