File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ def find_libpython(python = nil)
40
40
debug_report ( "find_libpython(#{ python . inspect } )" )
41
41
python , python_config = find_python_config ( python )
42
42
43
- set_PYTHONHOME ( python_config )
44
- libs = make_libs ( python_config )
45
- libpaths = make_libpaths ( python_config )
46
-
47
43
# Try LIBPYTHON environment variable first.
48
44
if ( libpython = ENV [ 'LIBPYTHON' ] )
49
45
if File . file? ( libpython )
@@ -59,6 +55,9 @@ def find_libpython(python = nil)
59
55
end
60
56
61
57
# Find libpython (we hope):
58
+ set_PYTHONHOME ( python_config )
59
+ libs = make_libs ( python_config )
60
+ libpaths = make_libpaths ( python_config )
62
61
multiarch = python_config [ :MULTIARCH ] || python_config [ :multiarch ]
63
62
libs . each do |lib |
64
63
libpaths . each do |libpath |
You can’t perform that action at this time.
0 commit comments