use check parameter of subprocess.run

...instead of checking on our own.

Also increase required version of Python to 3.5 because of
subprocess.run().
This commit is contained in:
Sarah Hoffmann
2021-01-15 10:38:28 +01:00
parent de724aa576
commit 7cf9d459d6
3 changed files with 4 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ endif()
#-----------------------------------------------------------------------------
if (BUILD_IMPORTER)
find_package(PythonInterp 3)
find_package(PythonInterp 3.5 REQUIRED)
find_program(PYOSMIUM pyosmium-get-changes)
if (NOT EXISTS "${PYOSMIUM}")