Skip to content

Commit d72878f

Browse files
committed
Revert "Directly compare executable paths"
This reverts commit f09ae42.
1 parent cdbefb1 commit d72878f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

julia/core.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,6 @@ def juliainfo(runtime='julia'):
299299
return JuliaInfo(*args)
300300

301301

302-
def is_same_path(a, b):
303-
a = os.path.realpath(os.path.normcase(a))
304-
b = os.path.realpath(os.path.normcase(b))
305-
return a == b
306-
307-
308302
def is_compatible_exe(jlinfo, _debug=lambda *_: None):
309303
"""
310304
Determine if Python used by PyCall.jl is compatible with this Python.
@@ -329,14 +323,6 @@ def is_compatible_exe(jlinfo, _debug=lambda *_: None):
329323
_debug(sys.executable, "is statically linked.")
330324
return False
331325

332-
# Note that the following check is OK since statically linked case
333-
# is already excluded.
334-
if is_same_path(jlinfo.pyprogramname, sys.executable):
335-
# In macOS and Windows, find_libpython does not work as good
336-
# as in Linux. We add this shortcut so that PyJulia can work
337-
# in those environments.
338-
return True
339-
340326
py_libpython = find_libpython()
341327
jl_libpython = normalize_path(jlinfo.libpython)
342328
_debug("py_libpython =", py_libpython)

0 commit comments

Comments
 (0)