We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc00c47 commit e397bc9Copy full SHA for e397bc9
deps/build.jl
@@ -151,6 +151,14 @@ const python = try
151
error("Python version $vers < 2.7 is not supported")
152
end
153
154
+
155
+ # check word size of Python via sys.maxsize, since a common error
156
+ # on Windows is to link a 64-bit Julia to a 32-bit Python.
157
+ pywordsize = parse(UInt64, pysys(py, "maxsize")) > (UInt64(1)<<32) ? 64 : 32
158
+ if pywordsize != Sys.WORD_SIZE
159
+ error("$py is $(pywordsize)-bit, but Julia is $(Sys.WORD_SIZE)-bit")
160
+ end
161
162
py
163
164
catch e1
0 commit comments