Skip to content

Commit

Permalink
setuptools scripts is intended for python files only, so hacked in da…
Browse files Browse the repository at this point in the history
…ta_files
  • Loading branch information
necrolyte2 committed Feb 2, 2016
1 parent 7aae9c4 commit 92ba65a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bioframework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
__authoremails__ = '[email protected], [email protected]'
__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')
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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__,
Expand All @@ -15,5 +22,8 @@
},
install_requires = [
'pyjip',
],
data_files=[
(join(sys.prefix,'bin'), jip_modules()),
]
)

0 comments on commit 92ba65a

Please sign in to comment.