File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,9 @@ message(STATUS "****************************************************************
155155message (STATUS "Configuring sources" )
156156update_site_config()
157157
158+ find_package (PythonInterp REQUIRED)
158159add_custom_target (set_version ALL
159- COMMAND ${pfasst_SOURCE_DIR} /tools/get_pfasst_version.py
160+ COMMAND ${PYTHON_EXECUTABLE} ${ pfasst_SOURCE_DIR} /tools/get_pfasst_version.py
160161 WORKING_DIRECTORY ${pfasst_SOURCE_DIR}
161162 COMMENT "Updating PFASST++ version number"
162163 USES_TERMINAL
Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
2- #
3- #
4- #
1+ # encoding: utf-8
2+
3+ from __future__ import print_function
4+
5+ from sys import version_info
6+
7+ if version_info [0 ] == 2 and version_info [1 ] < 7 :
8+ raise SystemExit ("Insufficient Python Interpreter Version (%s < 2.7)" % (version_info ,))
59
610import re
711import subprocess
2529if config != new_config :
2630 with open (site_config , 'w' ) as f :
2731 f .write (new_config )
32+ print ("PFASST++ version set to: %s" % (version ,))
33+ else :
34+ print ("PFASST++ version did not change (still %s)" % (version ,))
You can’t perform that action at this time.
0 commit comments