diff --git a/bioframework/__init__.py b/bioframework/__init__.py index 5598de5..5fba70d 100644 --- a/bioframework/__init__.py +++ b/bioframework/__init__.py @@ -4,3 +4,7 @@ __authoremails__ = 'vallardt@gmail.com, michael.panciera.work@gmail.com' __description__ = "Basic building blocks for bio-pipelines" __keywords__ = "pyjip, pipeline, bioinformatics" + +from os.path import dirname, join, abspath +import os +JIP_PATH=join(dirname(dirname(abspath(__file__))), 'jip_modules') diff --git a/setup.py b/setup.py index 856f80f..ac5ff26 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,14 @@ +from glob import glob +from os.path import join +import sys + from setuptools import setup, find_packages import bioframework +def jip_modules(path=bioframework.JIP_PATH): + return glob(join(path, '*.jip')) + setup( name = bioframework.__projectname__, version = bioframework.__release__, @@ -15,5 +22,8 @@ }, install_requires = [ 'pyjip', + ], + data_files=[ + (join(sys.prefix,'bin'), jip_modules()), ] )