# Creating modules for HEASOFT and XMMSAS?

**URL:** <http://hpc-community.unige.ch/t/creating-modules-for-heasoft-and-xmmsas/1710>\
**Category:** Uncategorized\
**Created:** [September 27, 2021, 9:48am UTC](http://hpc-community.unige.ch/t/creating-modules-for-heasoft-and-xmmsas/1710 "2021-09-27T09:48:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominique.Eckert](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/d/a3d4f5/32.png) [@Dominique.Eckert](http://hpc-community.unige.ch/u/Dominique.Eckert)\
**Post date:** [September 27, 2021, 9:48am UTC](http://hpc-community.unige.ch/t/creating-modules-for-heasoft-and-xmmsas/1710/1 "2021-09-27T09:48:58Z")

</div>

Dear all,

After quite a bit of work on my side I was able to install the HEASOFT and XMMSAS software packages, which I know a number of people in the astronomy department are using. Therefore it would certainly be useful to have these packages as loadable modules rather than just on my home directory. Any way this can be done?

Cheers,  
Dominique

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [September 28, 2021, 1:33pm UTC](http://hpc-community.unige.ch/t/creating-modules-for-heasoft-and-xmmsas/1710/2 "2021-09-28T13:33:54Z")

</div>

Hi,

thanks for your input.

As build mechanism for the cluster we use EasyBuild and the module associated with a software is automatically built during the build process.

As you are talking about specific astro software, please check with @Volodymyr.Savchenko or @Hubert.Degaudenzi, they may help you to build centrally your software.

Best

Yann

---

<div class="post-metadata">

**Author:** ![Volodymyr.Savchenko](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/v/e99b99/32.png) [@Volodymyr.Savchenko](http://hpc-community.unige.ch/u/Volodymyr.Savchenko)\
**Post date:** [September 28, 2021, 2:04pm UTC](http://hpc-community.unige.ch/t/creating-modules-for-heasoft-and-xmmsas/1710/3 "2021-09-28T14:04:30Z")

</div>

Hi @Dominique.Eckert , @Yann.Sagon, @Hubert.Degaudenzi,

There are at least two working HEASOFT moudles installations, one on LESTA (made by Andrea) without EasyBuild and with some simplifications tricks which do not align well with modules design.

Another one made by me and installed in Baobab astro share. See some info in README there [Volodymyr.Savchenko / Easybuild Easyconfigs · GitLab](https://gitlab.unige.ch/Volodymyr.Savchenko/easybuild-easyconfigs) .

It still does not align too well with modules design. I realized this but still, made a PR to provide the easyconfig to the community, following recommendations of @Yann.Sagon , in order to see how they recommend to approach it:

> <https://github.com/easybuilders/easybuild-easyconfigs/pull/12835>
>
> (created using \`eb --new-pr\`)

There are lot’s of useful comments, as expected.  
To be clear, we could do at least one of the following things, in order from easy to hard:

- use already installed shared version in Baobab
- adopt it to workflow of HPC team, although it does fully conform to easybuild community requirements
- finalize the PR I made, and install it everywhere

To give an idea what does not comply with easybuild - it is not allowed to just source scripts like `headas-init.sh`. You need to emulate it fully in `lua`. So you need to understand well the insides of headas init scripts as well as know some basic `lua` and.

I do not have time now to work on the PR. I was expecting to finish it, but only after October.  
We could start with easy and proceed to hard.  
We could also have a zoom meeting about this if you want.

Please let me know.

Cheers

Volodymyr

---

<div class="post-metadata">

**Author:** ![Dominique.Eckert](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/d/a3d4f5/32.png) [@Dominique.Eckert](http://hpc-community.unige.ch/u/Dominique.Eckert)\
**Post date:** [September 30, 2021, 8:44am UTC](http://hpc-community.unige.ch/t/creating-modules-for-heasoft-and-xmmsas/1710/4 "2021-09-30T08:44:38Z")

</div>

Thanks a lot @Volodymyr.Savchenko , looking forward to this. I think what you are doing is really needed.

Cheers  
Dominique
