Skip to content

UConn-HPC/modulefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modulefile

Build Status Coverage License: CC0-1.0

Search prefix directory of installed software and generate environmental modules modulefile.

Installation

git clone https://github.com/UConn-HPC/modulefile
pip install --user --upgrade --editable modulefile/

Make sure that ~/.local/bin or similar is in your path per PEP 370.

Usage

modulefile /path/to/my/app/1.0 > /path/to/my/modulefile/dir/app/1.0

Tests

Virtual environments and tests are orchestrated using tox. Install tox using pip:

pip install --user tox

Run all tests using:

tox

Debug failing tests:

tox -- --pdb

If you add dependencies and get import errors, you need to recreate the tox environment:

tox --recreate

When you edit the files, you're likely going to create lots of linter errors caught by the tox unit tests if your text editor doesn't have interactive error reporting. If you use Emacs, you can configure it for python development by installing elpy.

About

Generate environmental modulefiles by inspecting prefix directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages