Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 9423045

Browse files
authored
Avoid hardcoded python binary path (#320)
* Avoid hardcoded python binary path * Find python interpreter fixes #319
1 parent 2d1481f commit 9423045

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ endif()
8686
include(OpenAccHelper)
8787
include(ClangFormatHelper)
8888

89+
# =============================================================================
90+
# Common dependencies
91+
# =============================================================================
92+
find_package(PythonInterp REQUIRED)
93+
8994
# =============================================================================
9095
# ISPC should compile with --pic by default
9196
# =============================================================================

extra/nrnivmodl_core_makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ $(kinderiv_h): $(mod_all_cpp_files) build_always | $(MODC_DIR)
190190
cd $(MODC_DIR) && mkdir -p _tmp && mv [^_]*.cpp _tmp/ && \
191191
mv $(addprefix _tmp/,$(notdir $(mod_all_cpp_files))) ./ || true
192192
rm -rf $(MODC_DIR)/_tmp
193-
cd $(MODC_DIR) && python $(datadir)/kinderiv.py
193+
cd $(MODC_DIR) && @PYTHON_EXECUTABLE@ $(datadir)/kinderiv.py
194194

195195

196196
$(dimplic_c): $(dimplic_src) | $(MODC_DIR)

0 commit comments

Comments
 (0)