-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·56 lines (51 loc) · 2.38 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
#!/usr/bin/env python
from setuptools import setup, Extension, find_packages
from distutils import sysconfig
import glob
import sys
srcs = [x for x in glob.glob("deeptoolsintervals/tree/*.c")]
libs = ["z"]
if sysconfig.get_config_vars('BLDLIBRARY') is not None:
# Note the "-l" prefix!
for e in sysconfig.get_config_vars('BLDLIBRARY')[0].split():
if e[0:2] == "-l":
libs.append(e[2:])
elif sys.version_info[0] >= 3 and sys.version_info[1] >= 3:
libs.append("python%i.%im" % (sys.version_info[0], sys.version_info[1]))
else:
libs.append("python%i.%i" % (sys.version_info[0], sys.version_info[1]))
additional_libs = [sysconfig.get_config_var("LIBDIR"), sysconfig.get_config_var("LIBPL")]
module1 = Extension('deeptoolsintervals.tree',
sources=srcs,
libraries=libs,
library_dirs=additional_libs,
include_dirs=[sysconfig.get_config_var("INCLUDEPY")])
setup(name='deeptoolsintervals',
version='0.1.9',
description='A python module creating/accessing GTF-based interval trees with associated meta-data',
author="Devon P. Ryan",
author_email="[email protected]",
url="https://github.com/deeptools/deeptools_intervals",
keywords=["bioinformatics", "GTF"],
classifier=["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering"],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
ext_modules=[module1])