Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5466 from cms-sw/crab-common
install crab in common; remove crab deps
- Loading branch information
Showing
7 changed files
with
78 additions
and
71 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
### RPM cms crab-prod 3.3.2001 | ||
%define wmcore_version 1.2.8 | ||
%define crabserver_version 3.3.2001.rc1 | ||
%define dbs_version 3.10.0 | ||
|
||
## IMPORT crab-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#CMSDIST_FILE_REVISION=1 | ||
import sys | ||
from os import environ | ||
from os.path import join | ||
CMSPath="@CMS_PATH@" | ||
_crab_type="crab-prod" if not "CRABCLIENT_TYPE" in environ else "crab-%s" % environ["CRABCLIENT_TYPE"] | ||
_crab_ver=None | ||
with open(join(CMSPath,"share/cms/crab-common/1.0","%s.latest" % _crab_type)) as ref: | ||
_crab_ver = ref.readlines()[0].strip() | ||
_crablib = join(CMSPath,"share/cms",_crab_type,_crab_ver,"lib") | ||
_crabpkg = join(_crablib, __name__) | ||
__path__.insert(0,_crabpkg) | ||
sys.path.insert(0,_crablib) | ||
exec(open(join(_crabpkg, '__init__.py')).read()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -e | ||
##################################################### | ||
# **************** IMPORTANT NOTE ***************** # | ||
# Increament Crab Startup Revision for every change # | ||
##################################################### | ||
#CMSDIST_FILE_REVISION=1 | ||
|
||
#Use crab-prod for default crab command | ||
crab_pkg=$(basename $0) | ||
if [ "${crab_pkg}" = "crab" ] ; then crab_pkg="crab-prod" ; fi | ||
|
||
#Search for latest crab version for cmsos | ||
cms_basedir="@CMS_PATH@" | ||
crab_dir="${cms_basedir}/share/cms/${crab_pkg}/$(cat ${cms_basedir}/share/cms/crab-common/1.0/${crab_pkg}.latest)" | ||
|
||
#Set crab runtime env and run crab | ||
export PATH="${crab_dir}/bin${PATH:+:$PATH}" | ||
export PYTHONPATH="${crab_dir}/lib${PYTHONPATH:+:$PYTHONPATH}" | ||
${crab_dir}/bin/crab "$@" |