Skip to content

Instantly share code, notes, and snippets.

@arq5x
Created March 14, 2012 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arq5x/2035775 to your computer and use it in GitHub Desktop.
Save arq5x/2035775 to your computer and use it in GitHub Desktop.
pop packaging
import ez_setup
ez_setup.use_setuptools()
import glob
import os
import sys
from setuptools import setup
from distutils.extension import Extension
if 'setuptools.extension' in sys.modules:
m = sys.modules['setuptools.extension']
m.Extension.__dict__ = m._Extension.__dict__
version_py = os.path.join(os.path.dirname(__file__), 'pop', 'version.py')
version = open(version_py).read().strip().split('=')[-1].replace('"','')
long_description = """
``pop`` is a database framework for exploring genetic variation'
"""
tests_require = ['nose>=0.11']
setup(
name="pop",
version=version,
install_requires=['numpy>=1.6.0', 'pyparsing>=1.5.6', 'pysam>=0.6', 'pyvcf>=0.4.0'],
requires = ['python (>=2.5, <3.0)'],
tests_require=tests_require,
setup_requires=tests_require,
extras_require={'test': tests_require},
packages=['pop',
'pop.test',
'pop.scripts',
'pop.test.data'],
author="Aaron Quinlan and Uma Paila",
description='A database framework for exploring genetic variation',
long_description=long_description,
url="none",
package_dir = {'pop': "pop"},
package_data = {'pop': ['data/*']},
scripts = ['pop/scripts/pop'],
author_email="arq5x@virginia.edu",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Topic :: Scientific/Engineering :: Bio-Informatics']
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment