Ejemplo n.º 1
0
from setup_helper import SetupHelper
from Cython.Distutils import build_ext

name = "jcvi"
classifiers = [
    'Development Status :: 4 - Beta',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Topic :: Scientific/Engineering :: Bio-Informatics',
]

# Use the helper
h = SetupHelper(initfile="jcvi/__init__.py", readmefile="README.md")
h.check_version(name, majorv=2, minorv=7)
setup_dir = op.abspath(op.dirname(__file__))
requirements = [
    x.strip() for x in open(op.join(setup_dir, 'requirements.txt'))
]
h.install_requirements(requires=["cython", "numpy"])

# Now these are available

# Start the show
ext_modules = [
    Extension("jcvi.assembly.chic", ["jcvi/assembly/chic.pyx"],
              include_dirs=[np.get_include()],
              extra_compile_args=["-O3"]),
    Extension("jcvi.formats.cblast", ["jcvi/formats/cblast.pyx"],
              extra_compile_args=["-O3"])
Ejemplo n.º 2
0

NAME = "jcvi"
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: BSD License",
    "Programming Language :: Python",
    "Programming Language :: Python :: 2",
    "Programming Language :: Python :: 3",
    "Topic :: Scientific/Engineering :: Bio-Informatics",
]

# Use the helper
h = SetupHelper(initfile="jcvi/__init__.py", readmefile="README.md")
h.check_version(NAME, majorv=2, minorv=7)
cmdclass = versioneer.get_cmdclass()
include_dirs = []
setup_dir = op.abspath(op.dirname(__file__))
requirements = [
    x.strip() for x in open(op.join(setup_dir, "requirements.txt"))
]
h.install_requirements(requires=["cython", "numpy"])

# Build the ext
try:
    import numpy as np
    from Cython.Distutils import build_ext

    cmdclass.update({"build_ext": build_ext})
    include_dirs.append(np.get_include())
Ejemplo n.º 3
0
name = 'treecut'
classifiers = [
    'Development Status :: 4 - Beta',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Topic :: Scientific/Engineering :: Bio-Informatics',
    ]
with open('requirements.txt') as f:
    required = f.read().splitlines()

# Use the helper
h = SetupHelper(initfile="treecut/__init__.py", readmefile="README.md")
h.check_version(name, majorv=2, minorv=7)

setup(
    name=name,
    version=h.version,
    author=h.author,
    author_email=h.email,
    license=h.license,
    long_description=h.long_description,
    packages=[name],
    scripts=glob('scripts/*.py') + ["treecut.py"],
    classifiers=classifiers,
    url='http://github.com/tanghaibao/treecut',
    description="Find nodes in hierarchical clustering that are statistically significant",
    install_requires=required + ["ete2"],
)
Ejemplo n.º 4
0
        sys.exit(errno)


NAME = "jcvi"
classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: BSD License",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Topic :: Scientific/Engineering :: Bio-Informatics",
]

# Use the helper
h = SetupHelper(initfile="jcvi/__init__.py", readmefile="README.md")
h.check_version(NAME, majorv=3, minorv=6)
cmdclass = versioneer.get_cmdclass()
include_dirs = []
setup_dir = op.abspath(op.dirname(__file__))
requirements = [
    x.strip() for x in open(op.join(setup_dir, "requirements.txt"))
]
h.install_requirements(requires=["cython", "numpy"])

# Build the ext
try:
    import numpy as np
    from Cython.Distutils import build_ext

    cmdclass.update({"build_ext": build_ext})
    include_dirs.append(np.get_include())