Skip to content

Commit

Permalink
Revert "Directly compare executable paths"
Browse files Browse the repository at this point in the history
This reverts commit f09ae42.
  • Loading branch information
tkf committed Aug 29, 2018
1 parent fe0cd97 commit c896cb1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions julia/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,6 @@ def juliainfo(runtime='julia'):
return JuliaInfo(*args)


def is_same_path(a, b):
a = os.path.realpath(os.path.normcase(a))
b = os.path.realpath(os.path.normcase(b))
return a == b


def is_compatible_exe(jlinfo, _debug=lambda *_: None):
"""
Determine if Python used by PyCall.jl is compatible with this Python.
Expand All @@ -329,14 +323,6 @@ def is_compatible_exe(jlinfo, _debug=lambda *_: None):
_debug(sys.executable, "is statically linked.")
return False

# Note that the following check is OK since statically linked case
# is already excluded.
if is_same_path(jlinfo.pyprogramname, sys.executable):
# In macOS and Windows, find_libpython does not work as good
# as in Linux. We add this shortcut so that PyJulia can work
# in those environments.
return True

py_libpython = find_libpython()
jl_libpython = normalize_path(jlinfo.libpython)
_debug("py_libpython =", py_libpython)
Expand Down

0 comments on commit c896cb1

Please sign in to comment.