| 1 |
import os |
| 2 |
import shutil |
| 3 |
import sys |
| 4 |
import glob |
| 5 |
from setuptools import setup, find_packages, Extension |
| 6 |
|
| •7 |
#minimap_c_files = [ |
| 8 |
# 'bseq.c', |
| 9 |
# 'index.c', |
| 10 |
# 'kthread.c', |
| 11 |
# 'map.c', |
| 12 |
# 'misc.c', |
| 13 |
# 'sdust.c', |
| 14 |
# 'sketch.c', |
| 15 |
#] |
| 16 |
#minimap_c_files = [os.path.join('third_party', 'minimap-0.2', x) for x in minimap_c_files] |
| 17 |
minimap_c_files = [os.path.join('ariba', 'ext', 'minimap_ariba.cpp')] |
| 18 |
minimap_mod = Extension( |
| 19 |
"minimap_ariba", |
| 20 |
minimap_c_files, |
| •21 |
extra_link_args=['-lz', '-lminimap'], |
| 22 |
include_dirs=[os.path.join(os.path.sep, 'usr', 'include', 'minimap')], |
| 23 |
) |
| 24 |
|
| •25 |
#fermilite_c_files = [ |
| 26 |
# 'bfc.c', |
| 27 |
# 'bseq.c', |
| 28 |
# 'bubble.c', |
| 29 |
# 'htab.c', |
| 30 |
# 'ksw.c', |
| 31 |
# 'kthread.c', |
| 32 |
# 'mag.c', |
| 33 |
# 'misc.c', |
| 34 |
# 'mrope.c', |
| 35 |
# 'rld0.c', |
| 36 |
# 'rle.c', |
| 37 |
# 'rope.c', |
| 38 |
# 'unitig.c' |
| 39 |
#] |
| 40 |
#fermilite_c_files = [os.path.join('third_party', 'fermi-lite-0.1', x) for x in fermilite_c_files] |
| 41 |
fermilite_c_files = [os.path.join('ariba', 'ext', 'fml-asm_ariba.cpp')] |
| 42 |
fermilite_mod = Extension( |
| 43 |
"fermilite_ariba", |
| 44 |
fermilite_c_files, |
| •45 |
extra_link_args=['-lz', '-lfml'], |
| 46 |
#include_dirs=[os.path.join('third_party', 'fermi-lite-0.1')], |
| 47 |
) |
| 48 |
|
| 49 |
vcfcall_mod = Extension( |
| 50 |
"vcfcall_ariba", |
| 51 |
[os.path.join('ariba', 'ext', 'vcfcall_ariba.cpp')], |
| 52 |
) |
| 53 |
|
| 54 |
|
| 55 |
with open("requirements.txt") as f: |
| 56 |
install_requires = [x.rstrip() for x in f] |
| 57 |
|
| 58 |
setup( |
| 59 |
ext_modules=[minimap_mod, fermilite_mod, vcfcall_mod], |
| 60 |
name='ariba', |
| 61 |
version='2.14.6', |
| 62 |
description='ARIBA: Antibiotic Resistance Identification By Assembly', |
| 63 |
packages = find_packages(), |
| •64 |
package_data={'ariba': ['test_run_data/*', |
| 65 |
'tb_data/*', |
| 66 |
'tests/data/*', |
| 67 |
'tests/data/refdata_query_prepareref/*', |
| 68 |
'tests/data/cluster_test_full_run_ok_non_coding/*', |
| 69 |
'tests/data/cluster_test_full_run_ref_not_in_cluster/*', |
| 70 |
'tests/data/cluster_full_run_smtls_snp_varonly_gene_no_snp/*', |
| 71 |
'tests/data/ref_preparer_test_run.out/*', |
| 72 |
'tests/data/ref_preparer_test_run_noncoding_checks.out/*', |
| 73 |
'tests/data/clusters_run_with_tb.ref/*', |
| 74 |
'tests/data/cluster_full_run_smtls_snp_varonly_gene/*', |
| 75 |
'tests/data/cluster_test_full_run_delete_codon/*', |
| 76 |
'tests/data/cluster_full_run_known_smtls_snp_presabs_nonc/*', |
| 77 |
'tests/data/cluster_test_full_run_assembly_fail/*', |
| 78 |
'tests/data/cluster_test_full_run_ok_gene_start_mismatch/*', |
| 79 |
'tests/data/cluster_test_full_run_ok_presence_absence/*', |
| 80 |
'tests/data/cluster_test_full_run_multiple_vars/*', |
| 81 |
'tests/data/cluster_full_run_known_smtls_snp_presabs_gene/*', |
| 82 |
'tests/data/cluster_test_full_run_partial_asmbly/*', |
| 83 |
'tests/data/pubmlst_ref_prepare.test_load_fa_and_clusters.in/*', |
| 84 |
'tests/data/cluster_test_init_no_refs_fa/*', |
| 85 |
'tests/data/cluster_full_run_smtls_snp_varonly_gene_2/*', |
| 86 |
'tests/data/cluster_test_full_run_choose_ref_fail/*', |
| 87 |
'tests/data/ref_preparer_test_run_all_noncoding.out/*', |
| 88 |
'tests/data/megares_zip_parser_write_files/*', |
| 89 |
'tests/data/cluster_full_run_smtls_snp_presabs_nonc/*', |
| 90 |
'tests/data/cluster_test_full_run_no_reads_after_filtering/*', |
| 91 |
'tests/data/cluster_full_run_smtls_snp_varonly_nonc_no_snp/*', |
| 92 |
'tests/data/cluster_test_init_no_reads_2/*', |
| 93 |
'tests/data/clusters_load_ref_data_from_dir/*', |
| 94 |
'tests/data/cluster_full_run_smtls_known_snp_presabs_nonc/*', |
| 95 |
'tests/data/cluster_test_full_run_smtls_snp_varonly_nonc/*', |
| 96 |
'tests/data/cluster_test_full_run_ok_variants_only/*', |
| 97 |
'tests/data/cluster_full_run_smtls_snp_varonly_nonc/*', |
| 98 |
'tests/data/cluster_test_full_run_insert_codon/*', |
| 99 |
'tests/data/cluster_test_init_no_reads_1/*', |
| 100 |
'tests/data/cluster_full_run_smtls_snp_presabs_gene/*']}, |
| 101 |
author='Martin Hunt', |
| 102 |
url='https://github.com/sanger-pathogens/ariba', |
| 103 |
scripts=glob.glob('scripts/*'), |
| 104 |
test_suite='nose.collector', |
| 105 |
tests_require=['nose >= 1.3'], |
| 106 |
install_requires=install_requires, |
| 107 |
license='GPLv3', |
| 108 |
classifiers=[ |
| 109 |
'Development Status :: 4 - Beta', |
| 110 |
'Topic :: Scientific/Engineering :: Bio-Informatics', |
| 111 |
'Programming Language :: Python :: 3 :: Only', |
| 112 |
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', |
| 113 |
], |
| 114 |
) |