-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
92 lines (82 loc) · 2.69 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import os
import sys
from setuptools import find_packages
from distutils.core import setup
from distutils.extension import Extension
import numpy as np
import parasail
from Cython.Build import cythonize
def get_long_description():
with open("README.md") as fp:
return fp.read()
if sys.platform == 'darwin':
# Use libc++ instead of libstdc++ on Mac OS. The latter has been deprecated
# since XCode 8 and is removed in XCode 10 (which ships with mac OS
# Mojave).
CPP_BASE_ARGS = ['-stdlib=libc++', '-mmacosx-version-min=10.9']
LINK_ARGS = []
else:
CPP_BASE_ARGS = []
# Recent versions of ld will set RUNPATH rather than RPATH, which breaks
# Cython wrappers that expose functionality from a shared object file.
LINK_ARGS = ['-Wl,--disable-new-dtags']
setup(
name='vpsearch',
version='0.2.0.dev0',
author='Enthought',
author_email='[email protected]',
url='https://github.com/enthought/vpsearch',
description='Global-Global genetic database search.',
long_description=get_long_description(),
long_description_content_type='text/markdown',
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Cython",
"Topic :: Scientific/Engineering",
],
license="BSD",
platforms=["Linux", "Mac OS-X", "Unix"],
ext_modules=cythonize([
Extension(
'vpsearch._vpsearch',
sources=['vpsearch/_vpsearch.pyx'],
include_dirs=[np.get_include(),
parasail.get_include(),
'vpsearch'],
language='c++',
extra_compile_args=CPP_BASE_ARGS + ['-std=c++11'],
extra_link_args=CPP_BASE_ARGS + LINK_ARGS,
depends=[
'vpsearch/fastqueue.hpp',
'vpsearch/parasail.pxi',
]
),
]),
entry_points={
'console_scripts': [
'vpsearch=vpsearch._cli:main',
],
},
install_requires=[
"click",
"numpy",
# Pin Parasail to a specific version. See
# https://github.com/enthought/vpsearch/pull/37 for more information.
"parasail==1.3.3",
],
extras_require={
"docs": [
"sphinx",
"enthought-sphinx-theme",
]
},
packages=find_packages(),
)