install python per epics arch

This commit is contained in:
Michael Davidsaver
2013-12-08 13:09:16 -05:00
parent cdc899037c
commit 639baab55d
3 changed files with 9 additions and 4 deletions

View File

@ -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 $@)
@echo "Install PY $@"
install -m 644 $< $@
build: $(PY_FILES)
endif

View File

@ -6,7 +6,7 @@ cd("$(TOP)")
epicsEnvSet("http_proxy", "http://proxy:8888/")
epicsEnvSet("PYTHONPATH", "${TOP}/python")
epicsEnvSet("PYTHONPATH", "${TOP}/python/$(ARCH)")
dbLoadDatabase("dbd/softIocPy.dbd")
softIocPy_registerRecordDeviceDriver(pdbbase)

View File

@ -1,6 +1,6 @@
#!./bin/linux-x86/softIocPy
epicsEnvSet("PYTHONPATH", "${PWD}/python:${PWD}/testApp")
epicsEnvSet("PYTHONPATH", "${PWD}/python/linux-x86:${PWD}/testApp")
dbLoadDatabase("dbd/softIocPy.dbd")
softIocPy_registerRecordDeviceDriver(pdbbase)