Skip to content

[14_1_X] Rivet: disable ONNX dependency #9882

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

Open
wants to merge 1 commit into
base: IB/CMSSW_14_1_X/master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rivet.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Source: git+https://gitlab.com/hepcedar/rivet.git?obj=master/%{n}-%{realversion}
Source99: scram-tools.file/tools/eigen/env
Patch0: rivet-duplicate-libs

Requires: hepmc3 fastjet fastjet-contrib yoda hdf5 highfive onnxruntime
Requires: hepmc3 fastjet fastjet-contrib yoda hdf5 highfive
BuildRequires: python3 py3-cython autotools

%prep
Expand Down Expand Up @@ -46,16 +46,16 @@ sed -i "/_pow10 only defined for positive powers/d" include/Rivet/Tools/Particle
PYTHON=$(which python3) \
./configure --disable-silent-rules --prefix=%{i} --with-hepmc=${HEPMC3_ROOT} \
--with-fastjet=${FASTJET_ROOT} --with-fjcontrib=${FASTJET_CONTRIB_ROOT} --with-yoda=${YODA_ROOT} \
--disable-doxygen --disable-pdfmanual --with-pic \
--with-hdf5=${HDF5_ROOT}/bin/h5pcc --with-highfive=${HIGHFIVE_ROOT} --enable-onnxrt=${ONNXRUNTIME_ROOT} \
--disable-doxygen --with-pic \
--with-hdf5=${HDF5_ROOT}/bin/h5pcc --with-highfive=${HIGHFIVE_ROOT} \
CXX="mpicxx" CPPFLAGS="-I${BOOST_ROOT}/include" CXXFLAGS="${CXXFLAGS}"
# The following hack insures that the bins with the library linked explicitly
# rather than indirectly, as required by the gold linker
perl -p -i -e "s|LIBS = $|LIBS = -lHepMC3|g" bin/Makefile
make %{makeprocesses} all

%install
make install
make install
sed -i -e 's|^#!.*python.*|#!/usr/bin/env python3|' %{i}/bin/*

%post
Expand Down