Skip to content

Commit

Permalink
Merge pull request #96 from rlcee/sp_240226
Browse files Browse the repository at this point in the history
tweaks for spack
  • Loading branch information
rlcee authored Feb 26, 2024
2 parents ca29746 + 9f4dab8 commit 73808b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/museList.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ do
CURRENTV=$( basename $( readlink -f $MUSINGS/$MM/current ) )

if [ $MUSE_VERBOSE -gt 0 ]; then
VLIST=$( ls -1 $MUSINGS/$MM | grep -v current )
VLIST=$( ls -1t $MUSINGS/$MM | grep -v current )
else
VLIST=$( ls -1tr $MUSINGS/$MM | grep -v current | tail -3 )
VLIST=$( ls -1t $MUSINGS/$MM | grep -v current | head -3 )
fi

for VV in $VLIST
Expand Down
2 changes: 2 additions & 0 deletions bin/museStatus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ if [ "$MUSE_CPPFLAGS" ]; then
[ $MUSE_VERBOSE -gt 0 ] && echo "compile flags requested in .muse files:"
echo " MUSE_CPPFLAGS = " $MUSE_CPPFLAGS
fi
[ $MUSE_VERBOSE -gt 0 ] && echo "if set, use spack insted of UPS:"
echo " MU2E_SPACK = " $MU2E_SPACK

echo

Expand Down
9 changes: 6 additions & 3 deletions python/sconstruct_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ def cppPath(mu2eOpts):
if os.environ.get('MUSE_BACKING') :
for bdir in os.environ['MUSE_BACKING'].split():
path.append(bdir)
else:
# the linked repo style
path.append(mu2eOpts["workDir"]+"/link")

if os.environ.get('MUSE_VIEW_INC') :
for vdir in os.environ['MUSE_VIEW_INC'].split(':'):
path.append(vdir)
# quit now since this should be everything..
return path

path = path + [
os.environ['ART_INC'],
Expand Down

0 comments on commit 73808b6

Please sign in to comment.