-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
59 lines (51 loc) · 1.48 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
import os
#from distutils.core import setup, Extension
from setuptools import setup, Extension, find_packages
def phanotate_connect_extension():
#os.environ["CC"] = "gcc"
#compile_args = ["-g -Wall -O2"]
link_args = ["-lm"]
ext = Extension('phanotate_connect',
language='gcc',
#extra_compile_args=compile_args,
extra_link_args=link_args,
include_dirs=[
'.',
'...',
os.path.join(os.getcwd(), 'include'),
],
library_dirs = [os.getcwd(),],
sources = ['src/phanotate_connect.c'])
return ext
def readme():
with open("README.md", "r") as fh:
long_desc = fh.read()
return long_desc
def get_version():
with open("VERSION", 'r') as f:
v = f.readline().strip()
return v
def main():
setup (
name = 'phanotate',
version = get_version(),
author = "Katelyn McNair",
author_email = "[email protected]",
description = 'A a tool to annotate phage genomes',
long_description = readme(),
long_description_content_type="text/markdown",
url = "https://github.com/deprekate/phanotate",
scripts=['phanotate.py'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
],
python_requires='>3.5.2',
packages=find_packages(),
#py_modules=['phanotate'],
install_requires=['fastpath>=1.3', 'genbank>=0.119'],
#ext_modules = [phanotate_connect_extension()]
)
if __name__ == "__main__":
main()