setup.py 2.47 KB
Newer Older
Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
1
#!/usr/bin/env python
2 3

#
Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
4
# Copyright (C) 2019 Jerry Hoogenboom
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#
# This file is part of FDSTools, data analysis tools for Next
# Generation Sequencing of forensic DNA markers.
#
# FDSTools is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# FDSTools is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FDSTools.  If not, see <http://www.gnu.org/licenses/>.
#

jhoogenboom's avatar
jhoogenboom committed
23
from setuptools import setup, find_packages
Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
24
from setuptools.extension import Extension
jhoogenboom's avatar
jhoogenboom committed
25

jhoogenboom's avatar
jhoogenboom committed
26
requires = ["numpy"]
jhoogenboom's avatar
jhoogenboom committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

# Python 2.6 does not include the argparse module.
try:
    import argparse
except ImportError:
    requires.append("argparse")


# Disabling hard linking as a workaround for this bug:
# http://bugs.python.org/issue8876
from sys import hexversion as sys_hexversion
if sys_hexversion < 0x020709C1:  # The bug is fixed in 2.7.9rc1.
    import os
    del os.link


import fdstools as distmeta
x = setup(
    name="fdstools",
    packages=find_packages(),
Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
47 48 49 50
    ext_modules=[
        Extension('fdstools.sg_align',
            sources=['fdstools/sg_align.c'],
            extra_compile_args=['-O3'])],
jhoogenboom's avatar
jhoogenboom committed
51
    package_data={
Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
52
        "fdstools": ["vis/*.*", "vis/*/*"]
jhoogenboom's avatar
jhoogenboom committed
53
    },
jhoogenboom's avatar
jhoogenboom committed
54 55 56 57 58 59
    version=distmeta.__version__,
    install_requires=requires,
    description="Forensic DNA Sequencing Tools",
    long_description=distmeta.__doc__,
    author="Jerry Hoogenboom",
    author_email="jerryhoogenboom@outlook.com",
60
    url="https://git.lumc.nl/jerryhoogenboom/fdstools/blob/master/README.rst",
61
    license="GPLv3+",
jhoogenboom's avatar
jhoogenboom committed
62 63
    platforms=["any"],
    classifiers=[
64
        "Development Status :: 4 - Beta",
jhoogenboom's avatar
jhoogenboom committed
65 66
        "Intended Audience :: Science/Research",
        "Intended Audience :: Legal Industry",
67 68
        "License :: OSI Approved :: GNU General Public License v3 or "
            "later (GPLv3+)",
jhoogenboom's avatar
jhoogenboom committed
69 70 71
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2",
        "Topic :: Scientific/Engineering :: Bio-Informatics"],
72
    keywords='bioinformatics forensics stutter NGS MPS DNA sequencing STR',
jhoogenboom's avatar
jhoogenboom committed
73 74 75 76 77
    entry_points={
        'console_scripts': [
            "fdstools=fdstools.fdstools:main"
        ]
    }
Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
78
)