From f258b0ee708c995a1768b48c6f52d34964225480 Mon Sep 17 00:00:00 2001 From: hetrickjm Date: Tue, 16 Dec 2025 12:26:31 -0500 Subject: [PATCH] Added nxs2taco a pysen utility nxs2taco was added at the request of Piotr for pysen users. --- rpm/nsd-app-wrap.spec | 6 +++++- src/nxs2taco | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 src/nxs2taco diff --git a/rpm/nsd-app-wrap.spec b/rpm/nsd-app-wrap.spec index eaecbda..1f24225 100644 --- a/rpm/nsd-app-wrap.spec +++ b/rpm/nsd-app-wrap.spec @@ -1,5 +1,5 @@ Name: nsd-app-wrap -Version: 2.13 +Version: 2.14 Release: 1%{?dist} Summary: Wrapper scripts to launch python applications installed via anaconda Vendor: Peter F. Peterson @@ -48,6 +48,7 @@ install -m 755 nr_launcher %{buildroot}%{_bindir}/ install -m 755 nsd-app-wrap.sh %{buildroot}%{_bindir}/ install -m 755 nsd-conda-wrap.sh %{buildroot}%{_bindir}/ install -m 755 nseplot %{buildroot}%{_bindir}/ +install -m 755 nxs2taco %{buildroot}%{_bindir}/ install -m 755 paraview %{buildroot}%{_bindir}/ install -m 755 pyrs %{buildroot}%{_bindir}/ install -m 755 quicknxs %{buildroot}%{_bindir}/ @@ -106,6 +107,9 @@ install -m 644 desktop/ibeatles.desktop %{buildroot}%{_datadir}/a %{_prefix}/share/applications/* %changelog +* Tue Dec 16 2025 John Hetrick +- Added nxs2taco, a pysen utility + * Thu Dec 04 2025 Daniel Caballero - Added McStas diff --git a/src/nxs2taco b/src/nxs2taco new file mode 100755 index 0000000..6bb5810 --- /dev/null +++ b/src/nxs2taco @@ -0,0 +1,15 @@ +#!/bin/bash + +# select the environment to use +# current default is system version +PIXI_ENVIRON=pysen + +# import library to do the real work +# shellcheck disable=SC1091 +. "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh" || + . /bin/nsd-app-wrap.sh + +# put together arguments - conda_env, application, argv +args=("${PIXI_ENVIRON}" "nxs2taco" "$@") +# launch the tool +pixi_launch "${args[@]}" -- GitLab