From 9f9b9dcd40eee24ecebda609a738f067e2ed816a Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Mon, 26 Aug 2019 12:15:15 +0200 Subject: [PATCH] added py2-six deps for fwlite --- fwlite-tool-conf.spec | 1 + fwlite_python_tools.spec | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 fwlite_python_tools.spec diff --git a/fwlite-tool-conf.spec b/fwlite-tool-conf.spec index fab74eab957..f0da0efcabd 100644 --- a/fwlite-tool-conf.spec +++ b/fwlite-tool-conf.spec @@ -48,6 +48,7 @@ Requires: davix-toolfile Requires: py2-numpy-toolfile Requires: OpenBLAS-toolfile Requires: py2-pybind11-toolfile +Requires: fwlite_python_tools %if %isamd64 %if %isslc diff --git a/fwlite_python_tools.spec b/fwlite_python_tools.spec new file mode 100644 index 00000000000..b4b93f77bb9 --- /dev/null +++ b/fwlite_python_tools.spec @@ -0,0 +1,21 @@ +### RPM external fwlite_python_tools 1.0 +## INITENV +PATH PYTHON27PATH %{i}/${PYTHON_LIB_SITE_PACKAGES} +## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES} +Source: none + +%define isslc7 %(case %{cmsplatf} in (slc7_amd64*) echo 1 ;; (*) echo 0 ;; esac) +%define isamd64 %(case %{cmsplatf} in (*amd64*) echo 1 ;; (*) echo 0 ;; esac) +Requires: py2-six +Requires: py2-scipy +Requires: py2-numpy + +%prep + +%build + +%install +mkdir -p %{i}/etc/scram.d +cat << \EOF_TOOLFILE >%i/etc/scram.d/python_tools.xml + + +EOF_TOOLFILE