Skip to content

Commit c647b58

Browse files
committed
Enable PYCALL_DEBUG_BUILD in test_build.jl
1 parent e389af1 commit c647b58

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

deps/buildutils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pysys(python::AbstractString, var::AbstractString) = pyvar(python, "sys", var)
1515
#########################################################################
1616

1717
# print out extra info to help with remote debugging
18-
const PYCALL_DEBUG_BUILD = "yes" == get(ENV, "PYCALL_DEBUG_BUILD", "no")
18+
PYCALL_DEBUG_BUILD = "yes" == get(ENV, "PYCALL_DEBUG_BUILD", "no")
1919

2020
function exec_find_libpython(python::AbstractString, options)
2121
# Do not inline `@__DIR__` into the backticks to expand correctly.

test/test_build.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ include(joinpath(dirname(@__FILE__), "..", "deps", "buildutils.jl"))
66
using Test
77

88
@testset "find_libpython" begin
9+
global PYCALL_DEBUG_BUILD = true
910
for python in ["python", "python2", "python3"]
1011
# TODO: In Windows, word size should also be checked.
1112
Sys.iswindows() && break
1213
if Sys.which(python) === nothing
1314
@info "$python not available; skipping test"
1415
else
16+
@info "Testing `find_libpython(python)`" python Sys.which(python)
1517
@test isfile(find_libpython(python)[2])
1618
end
1719
end
20+
global PYCALL_DEBUG_BUILD = false
1821

1922
# Test the case `find_libpython.py` does not print anything. We
2023
# use the command `true` to mimic this case.

0 commit comments

Comments
 (0)