install python per epics arch
This commit is contained in:
@ -1,9 +1,14 @@
|
|||||||
|
ifneq ($(T_A),)
|
||||||
|
|
||||||
PY_FILES = $(PY:%=$(INSTALL_LOCATION)/python/%)
|
PY_INSTALL_DIR = $(INSTALL_LOCATION)/python/$(T_A)
|
||||||
|
|
||||||
$(PY_FILES) : $(INSTALL_LOCATION)/python/%: ../%
|
PY_FILES += $(PY:%=$(PY_INSTALL_DIR)/%)
|
||||||
|
|
||||||
|
$(PY_FILES) : $(PY_INSTALL_DIR)/%: ../%
|
||||||
@[ -d $(dir $@) ] || install -d $(dir $@)
|
@[ -d $(dir $@) ] || install -d $(dir $@)
|
||||||
@echo "Install PY $@"
|
@echo "Install PY $@"
|
||||||
install -m 644 $< $@
|
install -m 644 $< $@
|
||||||
|
|
||||||
build: $(PY_FILES)
|
build: $(PY_FILES)
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -6,7 +6,7 @@ cd("$(TOP)")
|
|||||||
|
|
||||||
epicsEnvSet("http_proxy", "http://proxy:8888/")
|
epicsEnvSet("http_proxy", "http://proxy:8888/")
|
||||||
|
|
||||||
epicsEnvSet("PYTHONPATH", "${TOP}/python")
|
epicsEnvSet("PYTHONPATH", "${TOP}/python/$(ARCH)")
|
||||||
|
|
||||||
dbLoadDatabase("dbd/softIocPy.dbd")
|
dbLoadDatabase("dbd/softIocPy.dbd")
|
||||||
softIocPy_registerRecordDeviceDriver(pdbbase)
|
softIocPy_registerRecordDeviceDriver(pdbbase)
|
||||||
|
2
test.cmd
2
test.cmd
@ -1,6 +1,6 @@
|
|||||||
#!./bin/linux-x86/softIocPy
|
#!./bin/linux-x86/softIocPy
|
||||||
|
|
||||||
epicsEnvSet("PYTHONPATH", "${PWD}/python:${PWD}/testApp")
|
epicsEnvSet("PYTHONPATH", "${PWD}/python/linux-x86:${PWD}/testApp")
|
||||||
|
|
||||||
dbLoadDatabase("dbd/softIocPy.dbd")
|
dbLoadDatabase("dbd/softIocPy.dbd")
|
||||||
softIocPy_registerRecordDeviceDriver(pdbbase)
|
softIocPy_registerRecordDeviceDriver(pdbbase)
|
||||||
|
Reference in New Issue
Block a user