Loading rpm/nsd-app-wrap.spec +5 −1 Original line number Diff line number Diff line Name: nsd-app-wrap Version: 1.62 Version: 1.63 Release: 1%{?dist} Summary: Wrapper scripts to launch python applications installed via anaconda Vendor: Peter F. Peterson Loading @@ -25,6 +25,7 @@ rm -rf $RPM_BUILD_ROOT # put things in the bin directory mkdir -p %{buildroot}%{_bindir}/ install -m 755 addie %{buildroot}%{_bindir}/ install -m 755 expgui %{buildroot}%{_bindir}/ install -m 755 gsas2 %{buildroot}%{_bindir}/ install -m 755 neutron-imaging %{buildroot}%{_bindir}/ install -m 755 mantidpythonnightly %{buildroot}%{_bindir}/ Loading Loading @@ -87,6 +88,9 @@ install -m 644 desktop/garnet.desktop %{buildroot}%{_datadir}/a %{_prefix}/share/applications/* %changelog * Wed Apr 17 2024 Ian Gibbs - Add expgui wrapper script * Wed Apr 17 2024 Kamal Punn - Add new line for drspine Loading src/expgui 0 → 100644 +31 −0 Original line number Diff line number Diff line #!/bin/bash __main() { # EXPGUI needs to run outside the context of conda. This wrapper # script excises any conda related paths from the user's PATH # environment variable to invoke the runtime application. local readonly path_outset="$PATH" local path_revised conda_root conda_root="/opt/anaconda" # read conda environment vars to determine the root prefix if [[ -n "$CONDA_PREFIX_1" ]] ; then conda_root="$CONDA_PREFIX_1" elif [[ -n "$CONDA_PREFIX" ]] ; then conda_root="$CONDA_PREFIX" fi # remove conda_root from PATH read -a path_revised <<< $( echo ${path_outset} | tr ':' '\n' | sort | uniq \ | grep -v "^${conda_root}" | tr '\n' ':' | sed 's/:$//g' \ ) # use inline variable assignment to set PATH # when invoking the EXPGUI runtime PATH="${path_revised}" /SNS/software/gsas/expgui/expgui } __main Loading
rpm/nsd-app-wrap.spec +5 −1 Original line number Diff line number Diff line Name: nsd-app-wrap Version: 1.62 Version: 1.63 Release: 1%{?dist} Summary: Wrapper scripts to launch python applications installed via anaconda Vendor: Peter F. Peterson Loading @@ -25,6 +25,7 @@ rm -rf $RPM_BUILD_ROOT # put things in the bin directory mkdir -p %{buildroot}%{_bindir}/ install -m 755 addie %{buildroot}%{_bindir}/ install -m 755 expgui %{buildroot}%{_bindir}/ install -m 755 gsas2 %{buildroot}%{_bindir}/ install -m 755 neutron-imaging %{buildroot}%{_bindir}/ install -m 755 mantidpythonnightly %{buildroot}%{_bindir}/ Loading Loading @@ -87,6 +88,9 @@ install -m 644 desktop/garnet.desktop %{buildroot}%{_datadir}/a %{_prefix}/share/applications/* %changelog * Wed Apr 17 2024 Ian Gibbs - Add expgui wrapper script * Wed Apr 17 2024 Kamal Punn - Add new line for drspine Loading
src/expgui 0 → 100644 +31 −0 Original line number Diff line number Diff line #!/bin/bash __main() { # EXPGUI needs to run outside the context of conda. This wrapper # script excises any conda related paths from the user's PATH # environment variable to invoke the runtime application. local readonly path_outset="$PATH" local path_revised conda_root conda_root="/opt/anaconda" # read conda environment vars to determine the root prefix if [[ -n "$CONDA_PREFIX_1" ]] ; then conda_root="$CONDA_PREFIX_1" elif [[ -n "$CONDA_PREFIX" ]] ; then conda_root="$CONDA_PREFIX" fi # remove conda_root from PATH read -a path_revised <<< $( echo ${path_outset} | tr ':' '\n' | sort | uniq \ | grep -v "^${conda_root}" | tr '\n' ':' | sed 's/:$//g' \ ) # use inline variable assignment to set PATH # when invoking the EXPGUI runtime PATH="${path_revised}" /SNS/software/gsas/expgui/expgui } __main