Commit bff725ca authored by Borreguero Calvo, Jose's avatar Borreguero Calvo, Jose
Browse files

add usans environments

parent 9c469057
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
Name:           nsd-app-wrap
Version:        1.57
Version:        1.58
Release:        1%{?dist}
Summary:        Wrapper scripts to launch python applications installed via anaconda
Vendor:         Peter F. Peterson
@@ -50,6 +50,7 @@ install -m 755 quicknxs %{buildroot}%{_bindir}/
install -m 755 crystalplan                            %{buildroot}%{_bindir}/
install -m 755 paraview                               %{buildroot}%{_bindir}/
install -m 755 nseplot                                %{buildroot}%{_bindir}/
install -m 755 usans                                  %{buildroot}%{_bindir}/

# put icons in the right place
mkdir -p %{buildroot}/%{_datadir}/pixmaps/
@@ -81,6 +82,9 @@ install -m 644 desktop/paraview.desktop %{buildroot}%{_datadir}/a
%{_prefix}/share/applications/*

%changelog
* Thu Feb 29 2024 Jose Borreguero
- Add usans

* Tue Feb 27 2024 Kamal Punn
- modify pysen to nseplot for RHEL9

src/usans

0 → 100644
+24 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
# current default is system version
CONDA_ENVIRON=usans
if [ -n "$1" ]; then
  if [ "$1" == "--dev" ]; then
    CONDA_ENVIRON=usans-dev
    shift  # drop this argument
  elif [ "$1" == "--qa" ]; then
    CONDA_ENVIRON=usans-qa
    shift  # drop this argument
  fi
fi

if [ -v CONDA_ENVIRON ];
then
    # import library to do the real work
    source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"
    # activate the environment - will be deactivated on exit
    activate_conda_environment "${CONDA_ENVIRON}"
fi

# (there is no default appliation to launch)