[Halld-offline] Scons & SBMS missing homes

Paul Eugenio peugenio at fsu.edu
Tue Jul 31 20:58:10 EDT 2018


I started looking at the SConstript files working my way up the tree and came to the SBMS directory.   The smbs.py has the new split recon and sim homes, but sbms_setenv.py and SConstruct.plugin have the old $HALLD_HOME.   This smells like the problem.   I tried changing the HALLD_HOME to HALLD_SIM_HOME following the HALLD_RECON_HOME in  halld_recon, but that did not fix it.    In addition to this scons issues, there is another problem in halld_sim regarding missing includes.


Paul



hnpgrid5 490% grep HALLD ../../../SBMS/*

../../../SBMS/sbms.py: halld_recon_home = os.getenv('HALLD_RECON_HOME', 'halld_recon')
../../../SBMS/sbms.py: env.AppendUnique(CUDAFLAGS=['-I%s -I%s/src/libraries' % (AMPTOOLS, os.getenv('HALLD_SIM_HOME',os.getcwd()))])
../../../SBMS/sbms.py: cobrems_home = os.getenv('HALLD_SIM_HOME', 'halld_sim’)

../../../SBMS/sbms_setenv.py: # HALLD
../../../SBMS/sbms_setenv.py: str += '# HALLD\n'
../../../SBMS/sbms_setenv.py: str += 'setenv HALLD_HOME %s\n' % halld_home
../../../SBMS/sbms_setenv.py: str += 'setenv PATH ${HALLD_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
../../../SBMS/sbms_setenv.py: str += 'setenv JANA_PLUGIN_PATH ${HALLD_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
../../../SBMS/sbms_setenv.py: str += 'setenv %s ${HALLD_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
../../../SBMS/sbms_setenv.py: str += 'setenv PYTHONPATH ${HALLD_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'
../../../SBMS/sbms_setenv.py: # HALLD
../../../SBMS/sbms_setenv.py: str += '# HALLD\n'
../../../SBMS/sbms_setenv.py: str += 'export HALLD_HOME=%s\n' % halld_home
../../../SBMS/sbms_setenv.py: str += 'export PATH=${HALLD_HOME}/${BMS_OSNAME}/bin:${PATH}\n'
../../../SBMS/sbms_setenv.py: str += 'export JANA_PLUGIN_PATH=${HALLD_HOME}/${BMS_OSNAME}/plugins:${JANA_PLUGIN_PATH}\n'
../../../SBMS/sbms_setenv.py: str += 'export %s=${HALLD_HOME}/${BMS_OSNAME}/lib:${%s}\n' %(LDLPV, LDLPV)
../../../SBMS/sbms_setenv.py: str += 'export PYTHONPATH=${HALLD_HOME}/${BMS_OSNAME}/lib/python:${PYTHONPATH}\n'

../../../SBMS/SConstruct.plugin:# install into the directory specified by the HALLD_MY environment
../../../SBMS/SConstruct.plugin:# variable if defined. Otherwise, it will install in the HALLD_HOME
../../../SBMS/SConstruct.plugin:# Get HALLD_HOME environment variable, verifying it is set
../../../SBMS/SConstruct.plugin:halld_home = os.getenv('HALLD_HOME')
../../../SBMS/SConstruct.plugin: print 'HALLD_HOME environment variable not set!'
../../../SBMS/SConstruct.plugin:# Get HALLD_MY if it exists. Otherwise use HALLD_HOME
../../../SBMS/SConstruct.plugin:halld_my = os.getenv('HALLD_MY', halld_home)
../../../SBMS/SConstruct.plugin:                      LIBPATH = ["%s/%s/lib" %(halld_home, osname)],  # n.b. add HALLD_HOME here and prepend HALLD_MY below
../../../SBMS/SConstruct.plugin:# Only add HALLD_MY library search path if it already exists
../../../SBMS/SConstruct.plugin:# Add local directory, directories from HALLD_MY and HALLD_HOME to include search path

--
Prof. Paul Eugenio
Florida State University
Department of Physics
Tallahassee, Florida,  USA 32306

(850) 644-2585
peugenio at fsu.edu<mailto:peugenio at fsu.edu>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20180801/9c8da9c6/attachment.html>


More information about the Halld-offline mailing list