Skip to content

Commit 38c4d71

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ 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
@@ -15,6 +16,7 @@ using Test
1516
@test isfile(find_libpython(python)[2])
1617
end
1718
end
19+
global PYCALL_DEBUG_BUILD = false
1820

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

0 commit comments

Comments
 (0)