Duke-GCB/pypi-to-module

Name: pypi-to-module

Owner: Duke Center for Genomic and Computational Biology

Description: Creates an environment module from a package on pypi

Created: 2017-06-01 18:58:08.0

Updated: 2017-06-01 19:14:13.0

Pushed: 2017-06-01 19:36:05.0

Homepage: null

Size: 8

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

pypi-to-module

Creates an environment module from a package on pypi

Algorithm

User runs pypi_to_module.py passing specfile directory, pypi package name, module name, and an install script

Installation
 https://raw.githubusercontent.com/Duke-GCB/pypi-to-module/master/pypi_to_module.py
d 755 pypi_to_module.py

Create an installation script that performs the specific environment module installation process. See example_install_script.sh for an example of a install script.

Usage
e: ./pypi_to_module.py <SPECFILE_DIRECTORY> <PYPI_NAME> <MODULE_NAME> <INSTALL_SCRIPT>

So to try installing the python package DukeDSClient with the module name ddsclient using the /data/specfiles directory and using a installation script at /usr/bin/install_module.sh. You would run this command:

pi_to_module.py /data/specfiles DukeDSClient ddsclient /usr/bin/install_module.sh

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.