Skip to content

Commit

Permalink
Merge pull request #2481 from iahmad-khan/rootnumpy81xdevel
Browse files Browse the repository at this point in the history
adds root_numpy
  • Loading branch information
smuzaffar committed Sep 2, 2016
2 parents ee3fa98 + dbce7b9 commit dbb7063
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmssw-tool-conf.spec
Expand Up @@ -107,6 +107,7 @@ Requires: py2-PyYAML-toolfile
Requires: py2-docopt-toolfile
Requires: py2-prettytable-toolfile
Requires: py2-schema-toolfile
Requires: py2-root_numpy-toolfile
Requires: rivet-toolfile
Requires: cascade-toolfile
Requires: cython-toolfile
Expand Down
22 changes: 22 additions & 0 deletions py2-root_numpy-toolfile.spec
@@ -0,0 +1,22 @@
### RPM external py2-root_numpy-toolfile 1.0
Requires: py2-root_numpy
%prep

%build

%install

mkdir -p %{i}/etc/scram.d
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-root_numpy.xml
<tool name="py2-root_numpy" version="@TOOL_VERSION@">
<info url="https://github.com/rootpy/root_numpy"/>
<client>
<environment name="PY2_ROOT_NUMPY" default="@TOOL_ROOT@"/>
<runtime name="PYTHONPATH" value="$PY2_ROOT_NUMPY/lib/python@PYTHONV@/site-packages" type="path"/>
</client>
</tool>
EOF_TOOLFILE

export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)

## IMPORT scram-tools-post
17 changes: 17 additions & 0 deletions py2-root_numpy.spec
@@ -0,0 +1,17 @@
### RPM external py2-root_numpy 4.4.0
## INITENV +PATH PYTHONPATH %{i}/$PYTHON_LIB_SITE_PACKAGES
%define my_name %(echo %n | cut -f2 -d-)
Source: https://github.com/rootpy/%my_name/archive/%{realversion}.tar.gz

Requires: python py2-numpy root
BuildRequires: py2-setuptools

%prep
%setup -n %{my_name}-%{realversion}

%build
python setup.py build

%install
python setup.py install --single-version-externally-managed --record=/dev/null --skip-build --prefix=%{i}
find %{i}/${PYTHON_LIB_SITE_PACKAGES} -name '*.egg-info' -print0 | xargs -0 rm -rf

0 comments on commit dbb7063

Please sign in to comment.