[Neurodebian-devel] [RFC] Should we convert to use 'Modules' (http://modules.sourceforge.net/)?
Yaroslav Halchenko
debian at onerussian.com
Tue Feb 4 15:02:04 UTC 2014
That is cool Alex -- looks thorough and nice ;-) watchout though --
Michael seems haven't pushed last changes for 5.0.6-1.
also shouldn't it carry version information? for ANTS I was going to
plug it with a simple sed:
debian/ants.environment-modules.in
and debian/rules
%modules: %modules.in
sed -e 's,$$UVERSION,$(uver),g' $< >| $@
I guess we better also agree on the minor detail: .modfile (might be confused
with kernel modules?) and .environment-modules (too long but as "specific" as
it could be I guess)
Next one would be AFNI I guess... ? ;)
On Mon, 03 Feb 2014, Alex Waite wrote:
> Yarik,
> Just as FYI, last week I ported fsl.sh to modenv. I made it as
> similar to the NeuroDebian version of fsl.sh as possible (comments
> and all). It is very lightly tested, but I pushed it to the fsl repo
> on Alioth for posterity. The script is identical except I prepend
> rather than append the fsl dir to PATH.
> On 12/12/2013 05:30 PM, Yaroslav Halchenko wrote:
> > The only catch here which I do not know how to resolve yet
> > without interaction with users is:
> > $> tail -n 3 /etc/fsl/fsl.sh /etc/afni/afni.sh
> > ==> /etc/fsl/fsl.sh <==
> > if [ -f "${HOME}/.fslconf/fsl.sh" ] ; then
> > . "${HOME}/.fslconf/fsl.sh" ;
> > fi
> > ==> /etc/afni/afni.sh <==
> > if [ -f "${HOME}/.config/AFNI/afni.sh" ] ; then
> > . "${HOME}/.config/AFNI/afni.sh" ;
> > fi
> > Since these are shell-specific they can't be just "sourced" anyhow within
> > modulefile. It should be possible to check and warn users though if such a
> > file was found present, and advise to convert it to modulefiles but I am not
> > yet sure on how easy that would be todo/enable.
> This is the one other thing I changed. I warn (loudly) if a
> ~/.fslconf/fsl.sh file is found. I'm sure the wording/advice of the
> warning can be improved.
> ---Alex
> _______________________________________________
> Neurodebian-devel mailing list
> Neurodebian-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/neurodebian-devel
--
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
More information about the Neurodebian-devel
mailing list