Commit 2f258e43 authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Add drtsans

parent 948d0cc8
Loading
Loading
Loading
Loading
Loading

drtsans

0 → 100755
+29 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
CONDA_ENVIRON=sans
if [ -n "$1" ]; then
  if [ "$1" == "--dev" ]; then
    CONDA_ENVIRON=sans-dev
    shift  # drop this argument
  elif [ "$1" == "--qa" ]; then
    CONDA_ENVIRON=sans-qa
    shift  # drop this argument
  fi
fi

# look for `--classic` argument
STARTUP=ipython
if [ -n "$1" ] && [ "$1" == "--classic" ]; then
    STARTUP=python
    shift  # drop this argument
fi

# 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}"

# start the application
"$STARTUP" "$@"
+5 −1
Original line number Diff line number Diff line
%global srcname nsd-app-wrap

Name:           nsd-app-wrap
Version:        1.11
Version:        1.12
Release:        1%{?dist}
Summary:        Wrapper scripts to launch python applications installed via anaconda
Vendor:         Peter F. Peterson
@@ -31,6 +31,7 @@ mv nsd-app-wrap.sh %{buildroot}%{_bindir}/
mv nsd-conda-wrap.sh %{buildroot}%{_bindir}/
mv pyrs %{buildroot}%{_bindir}/
mv sasview %{buildroot}%{_bindir}/
mv drtsans %{buildroot}%{_bindir}/
# put icons in the right place
mkdir -p %{buildroot}/%{_datadir}/pixmaps/
mv pyrs.png %{buildroot}/%{_datadir}/pixmaps/
@@ -46,6 +47,9 @@ mv pyrs.desktop %{buildroot}%{_datadir}/applications/
%license LICENSE

%changelog
* Tue Aug 24 2021 Ross Whitfield
- Added drtsans

* Mon Aug 23 2021 Donnie Earnest
- Use rsync for updating notebooks