File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ include $(TOP)/configure/RULES_TOP
1111# succuessfully import the softioc library.
1212SPHINX_BUILD := $(shell readlink -f $$(which sphinx-build ) )
1313
14+ PYTHONHOME := $(shell $(PYTHON ) -c 'import sys; print(sys.exec_prefix) ')
15+
1416BUILD_DOCS ?= 1
1517
1618install : pythonIoc
@@ -23,7 +25,8 @@ clean: clean-pythonIoc
2325# Commands for creating startup script with correct paths to EPICS.
2426define SED_EDIT_COMMANDS
2527s:@@EPICS_BASE@@:$(EPICS_BASE ) :; \
26- s:@@EPICS_HOST_ARCH@@:$(EPICS_HOST_ARCH ) :
28+ s:@@EPICS_HOST_ARCH@@:$(EPICS_HOST_ARCH ) :; \
29+ s:@@PYTHONHOME@@:$(PYTHONHOME ) :
2730endef
2831
2932# Ensure we get the build time EPICS_BASE into the executable
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export HERE="$(readlink -fn "$(dirname "$0")")"
88export PYTHONPATH=" $PYTHONPATH ${PYTHONPATH: +: } $HERE /python"
99export EPICS_BASE=' @@EPICS_BASE@@'
1010export EPICS_HOST_ARCH=' @@EPICS_HOST_ARCH@@'
11+ export PYTHONHOME=' @@PYTHONHOME@@'
1112
1213case " $1 " in
1314 --debug)
Original file line number Diff line number Diff line change @@ -17,12 +17,10 @@ include $(TOP)/configure/CONFIG
1717# surprisingly tricky, as we want to support quite a number of different
1818# configurations of Python interpreter.
1919PYTHON_LIB := $(shell $(PYTHON ) -c \
20- 'from __future__ import print_function; \
21- from distutils import sysconfig; \
20+ 'from distutils import sysconfig; \
2221 print(sysconfig.get_config_var("LIBRARY") [3:-2])')
2322PYTHON_LIB_DIR := $(shell $(PYTHON ) -c \
24- 'from __future__ import print_function; \
25- from distutils import sysconfig; \
23+ 'from distutils import sysconfig; \
2624 print(sysconfig.get_config_var("LIBDIR") )')
2725
2826
You can’t perform that action at this time.
0 commit comments