forked from labgem/PPanGGOLiN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·64 lines (59 loc) · 2.86 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
#!/usr/bin/python3
# -*- coding: iso-8859-1 -*-
import os, sys
from setuptools import setup, find_packages
from distutils.extension import Extension
import logging
import subprocess
from distutils.command.install import install
from distutils.command.build import build
from distutils.command.clean import clean
try:
from Cython.Build import cythonize
except ImportError as e:
print(e)
print('please install Cython ("pip install cython") before installing ppanggolin')
exit(1)
name = find_packages().pop()
NEM_dir_path = name+"/NEM/"
# print(NEM_dir_path)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
if __name__ == "__main__":
setup(
name = name,
version = read("VERSION").rstrip(),
author = "Guillaume GAUTREAU",
author_email = "ggautrea@genoscope.cns.fr",
description = "Depict microbial diversity via a partitioned pangenome graph",
license = "CeCILL-2.1",
keywords = "pangenome comparative-genomics bioinformatics microbiology",
url = "https://github.com/ggautreau/PPanGGOLiN",
packages=[name],
long_description=read('README.rst'),
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
entry_points={
'console_scripts': [
name+' = '+name+'.command_line:__main__'
]},
install_requires= ['cython', 'ordered-set', 'bidict', 'networkx >= 2.0', 'fa2', 'tqdm', 'python-highcharts','futures;python_version=="2.7"'],
ext_modules = cythonize([Extension(name = "nem",sources =[NEM_dir_path+'nem.pyx',
NEM_dir_path+'nem_exe.c',
NEM_dir_path+'nem_alg.c',
NEM_dir_path+'nem_nei.c',
NEM_dir_path+'nem_mod.c',
NEM_dir_path+'nem_rnd.c',
NEM_dir_path+'lib_io.c',
NEM_dir_path+'nem_hlp.c',
NEM_dir_path+'genmemo.c'],
include_dirs=[NEM_dir_path])]))