Difference: SetupProject (7 vs. 8)

Revision 82008-10-20 - MarcoClemencic

Line: 1 to 1
 

SetupProject User Guide

Line: 178 to 178
  The reason for the change of behavior is needed because the old behavior could lead to some inconsistencies across calls to SetupProject. Of course, something similar to the old behavior is still possible with the command line option --keep-CMTPROJECTPATH.
Changed:
<
<
Here I describe how to have SetupProject constructing the CMTPROJECTPATH for you. The basic logic is that the minimal CMTPROJECTPATH is given by the environment variable LHCBPROJECTPATH, the options to modify the CMTPROJECTPATH are prepending to it and the User_release_area must always be the first one to be searched.
>
>
Here I describe how to have SetupProject constructing the CMTPROJECTPATH for you. The basic logic is that the minimal CMTPROJECTPATH is given by the environment variable LHCBPROJECTPATH, the options to modify the CMTPROJECTPATH are prepended to it and the User_release_area must always be the first one to be searched.
 The options that modify the CMTPROJECTPATH are:
  • --dev
  • --dev-dir <dir>
Line: 197 to 197
  will result in the value ${User_release_area}:/afs/cern.ch/user/m/marcocle/public:${LHCBPROJECTPATH} for CMTPROJECTPATH.
Changed:
<
<
The option --nightly is a useful shortcut to --dev-dir for the standard LHCb nightly build directories. It accepts a mandatory argument defining the slot to use (e.g. lhcb1 or lhcb2) and an optional argument for the day (3 chars abbreviation), which is defaulted to the current day. The call
>
>
The option --nightly allows to prepare the environment to use the standard LHCb nightly build directories. It accepts a mandatory argument defining the slot to use (e.g. lhcb1 or lhcb2) and an optional argument for the day (3 chars abbreviation), which is defaulted to the current day. With this option, SetupProject checks the existence of the configuration file of the nightly build and uses the information in it to prepare the CMTPROJECTPATH (needed for some special configuration of the nightly build slot). The call
 
SetupProject LHCb --nightly lhcb1
Changed:
<
<
will set CMTPROJECTPATH to ${User_release_area}:/afs/cern.ch/lhcb/software/nightlies/lhcb1/Fri:${LHCBPROJECTPATH} (assuming today is Friday).
>
>
will set CMTPROJECTPATH to ${User_release_area}:/afs/cern.ch/lhcb/software/nightlies/lhcb1/Fri:...:${LHCBPROJECTPATH} (assuming today is Friday), where the ... will contain the special entries required by the slot.
 
Changed:
<
<
The options described can be combined for more complex CMTPROJECTPATH, with the effect that the specified directories are prepended in the order they are encountered, so from
>
>
The options described can be combined for a more complex CMTPROJECTPATH. The specified directories are added to the CMTPROJECTPATH in the order specified on the command line, after User_release_area and before LHCBPROJECTPATH. So from
 
Changed:
<
<
SetupProject LHCb --dev --nightly lhcb1 Mon --dev-dir /afs/cern.ch/user/m/marcocle/public
>
>
SetupProject LHCb --dev-dir /afs/cern.ch/user/m/marcocle/public --nightly lhcb1 Mon --dev --dev-dir /afs/cern.ch/user/s/somebody/public
  you should expect CMTPROJECTPATH featuring, in this order,
  • ${User_release_area}
  • /afs/cern.ch/user/m/marcocle/public
  • /afs/cern.ch/lhcb/software/nightlies/lhcb1/Mon
  • ${LHCBDEV}
Added:
>
>
  • /afs/cern.ch/user/s/somebody/public
 
  • ${LHCBPROJECTPATH}.
Deleted:
<
<
Note: in the near future, --nightly will change to reproduce a CMTPROJECTPATH compatible with the one used in the requested nightly build.
 

Bug reporting

Please report bugs to the SetupProject category of the lhcbscripts Savannah bug tracker
Line: 243 to 243
  --build-env sets only the build time environment for the project --external-only sets only the environment for the externals (the project is used only to select the version of LCG)
Changed:
<
<
--dev prepend $LHCBDEV to the search path or DEVDIR if the option --dev-dir is specified --dev-dir DEVDIR define a custom DEVDIR to be used instead of $LHCBDEV, implies --dev
>
>
--dev prepend $LHCBDEV to the search path. Note: the directories are searched in the order specified on the command line. --dev-dir DEVDIR prepend DEVDIR to the search path Note: the directories are searched in the order specified on the command line.
  -v VERSION must be used after the name of an external to specify a non default version for it --set-CMTPATH Set CMTPATH to the value used internally by CMT
Line: 265 to 267
  --nightly SLOT [DAY] Add the required slot of the LHCb nightly builds to the list of DEV dirs. DAY must be a 3 digit abbreviation of the weekday, by default the current
Changed:
<
<
day.
>
>
day. Special settings of the CMTPROJECTPATH needed for the nightly build slot are taken into account.
 

How SetupProject works

Changed:
<
<
-- MarcoClemencic - 03 Oct 2008
>
>
-- MarcoClemencic - 20 Oct 2008
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback