Skip to content

Commit ef5891c

Browse files
committed
Fixed make check
1 parent a4bb87b commit ef5891c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/python/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
if(LIBPOLY_BUILD_PYTHON_API)
2+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
23
add_custom_target(check
34
COMMAND
4-
PYTHONPATH=${CMAKE_BINARY_DIR}/python ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check.py
5+
PYTHONPATH=${CMAKE_BINARY_DIR}/python ${Python3_INTERPRETER} ${CMAKE_CURRENT_SOURCE_DIR}/check.py
56
DEPENDS
67
polypy
78
WORKING_DIRECTORY

test/python/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def forkexec(test, env):
8-
if sys.version_info >= (3,0): #IAM: (3, 2) might be more accurate...
8+
if sys.version_info >= (3,2):
99
with open(test) as testf:
1010
code = compile(testf.read(), test, 'exec') #IAM: explicit compile makes debugging easier.
1111
exec(code, env, env)

0 commit comments

Comments
 (0)