From 92ba65a2e3e847b8055e69bc5220f42820c9035d Mon Sep 17 00:00:00 2001 From: Tyghe Vallard Date: Tue, 2 Feb 2016 12:51:51 -0500 Subject: [PATCH] setuptools scripts is intended for python files only, so hacked in data_files --- bioframework/__init__.py | 4 ++++ setup.py | 10 ++++++++++ 2 files changed, 14 insertions(+) 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()), ] )