New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add professor2 #2891
Merged
smuzaffar
merged 2 commits into
cms-sw:IB/CMSSW_9_1_X/gcc530
from
mkirsano:add_professor2_91
Mar 13, 2017
Merged
Add professor2 #2891
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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,29 @@ | ||
### RPM external professor2-toolfile 1.0 | ||
Requires: professor2 | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %i/etc/scram.d | ||
cat << \EOF_TOOLFILE >%i/etc/scram.d/professor2.xml | ||
<tool name="professor2" version="@TOOL_VERSION@"> | ||
<client> | ||
<environment name="PROFESSOR2_BASE" default="@TOOL_ROOT@"/> | ||
</client> | ||
<use name="py2-numpy"/> | ||
<use name="py2-sympy"/> | ||
<use name="py2-matplotlib"/> | ||
<use name="root"/> | ||
<use name="cython"/> | ||
<use name="yoda"/> | ||
<use name="eigen"/> | ||
<runtime name="PATH" value="$PROFESSOR2_BASE/bin" type="path"/> | ||
<runtime name="PYTHONPATH" value="$PROFESSOR2_BASE/lib/python@PYTHONV@/site-packages" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) | ||
|
||
## IMPORT scram-tools-post |
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,16 @@ | ||
### RPM external professor2 2.2.1 | ||
## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages | ||
Source: http://www.hepforge.org/archive/professor/Professor-%{realversion}.tar.gz | ||
|
||
Requires: py2-numpy py2-sympy py2-matplotlib root cython yoda eigen | ||
%prep | ||
%setup -n Professor-%{realversion} | ||
|
||
%build | ||
make CPPFLAGS=-I${EIGEN_ROOT}/include/eigen3 | ||
|
||
%install | ||
make install PREFIX=%{i} | ||
|
||
find %{i} -type f -exec sed -ideleteme '1 { s|^#!.*/bin/python|#!/usr/bin/env python| }' {} \; | ||
find %{i} -name '*deleteme' -delete |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and elsewhere, the py2-sympy tool won't be directly available - you should depend on py2-pippkgs instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidlange6 , all of the py2-pippkgs tools are also separately available. So it is better to explicitly mention the dependency.