We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4bb87b commit ef5891cCopy full SHA for ef5891c
test/python/CMakeLists.txt
@@ -1,7 +1,8 @@
1
if(LIBPOLY_BUILD_PYTHON_API)
2
+ find_package(Python3 COMPONENTS Interpreter REQUIRED)
3
add_custom_target(check
4
COMMAND
- 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
6
DEPENDS
7
polypy
8
WORKING_DIRECTORY
test/python/check.py
@@ -5,7 +5,7 @@
def forkexec(test, env):
- if sys.version_info >= (3,0): #IAM: (3, 2) might be more accurate...
+ if sys.version_info >= (3,2):
9
with open(test) as testf:
10
code = compile(testf.read(), test, 'exec') #IAM: explicit compile makes debugging easier.
11
exec(code, env, env)
0 commit comments