setup.py 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #!/usr/bin/env python3.7
  2. from setuptools import setup, Extension
  3. # requires.txt
  4. # networkx>=1.9.1
  5. # python-edlib
  6. # python-msgpack
  7. # future>=0.16.0
  8. # pypeFLOW>=2.0.0
  9. install_requires = [
  10. "networkx >=1.9.1",
  11. # "python-edlib",
  12. # "python-msgpack",
  13. # "pb-dazzler",
  14. "future >= 0.16.0",
  15. #"pypeFLOW >= 2.0.0",
  16. ]
  17. # https://docs.python.org/3/extending/building.html
  18. # module1 = Extension('demo',
  19. # define_macros = [('MAJOR_VERSION', '1'),
  20. # ('MINOR_VERSION', '0')],
  21. # include_dirs = ['/usr/local/include'],
  22. # libraries = ['tcl83'],
  23. # library_dirs = ['/usr/local/lib'],
  24. # sources = ['demo.c'])
  25. ext_falcon_module = Extension(
  26. 'ext_falcon',
  27. sources=['src/c/ext_falcon.c', 'src/c/DW_banded.c', 'src/c/kmer_lookup.c', 'src/c/falcon.c'],
  28. extra_link_args=[],
  29. extra_compile_args=['-fPIC', '-O3',
  30. '-fno-omit-frame-pointer'],# '-fno-omit-frame-pointer' can help with gperftools.
  31. # libraries=['profiler'],
  32. # library_dirs=['/home/cdunn/local/lib'],
  33. # language="c++", # c for now
  34. # export_symbols=['generate_consensus'], # for windows?
  35. )
  36. scripts = []
  37. # PKG-INFO
  38. # Metadata-Version: 2.1
  39. # Name: falcon-kit
  40. # Version: 1.4.2
  41. # Summary: a small toolkit for DNA seqeucne alignment, overlapping, and assembly
  42. # Home-page: UNKNOWN
  43. # Author: Jason Chin
  44. # Author-email: jchin@pacificbiosciences.com
  45. # License: UNKNOWN
  46. # Description: UNKNOWN
  47. # Platform: UNKNOWN
  48. # Provides-Extra: falcon-task
  49. setup(name='falcon_kit',
  50. version='1.4.2',
  51. description='a small toolkit for DNA seqeucne alignment, overlapping, and assembly',
  52. author='Jason Chin',
  53. author_email='jchin@pacificbiosciences.com',
  54. packages=['falcon_kit',
  55. 'falcon_kit.mains',
  56. 'falcon_kit.util',
  57. ],
  58. package_dir={'falcon_kit': 'falcon_kit/'},
  59. ext_modules=[ext_falcon_module],
  60. entry_points={'console_scripts': [
  61. 'falcon-task = falcon_kit.mains.tasks:main',
  62. 'fc_actg_coordinate = falcon_kit.mains.actg_coordinate:main',
  63. 'fc_calc_cutoff = falcon_kit.mains.calc_cutoff:main',
  64. 'fc_consensus = falcon_kit.mains.consensus:main',
  65. 'fc_contig_annotate = falcon_kit.mains.contig_annotate:main',
  66. 'fc_ctg_link_analysis = falcon_kit.mains.ctg_link_analysis:main',
  67. 'fc_dedup_a_tigs = falcon_kit.mains.dedup_a_tigs:main',
  68. 'fc_fasta2fasta = falcon_kit.mains.fasta2fasta:main',
  69. 'fc_fetch_reads = falcon_kit.mains.fetch_reads:main',
  70. 'fc_gen_gfa_v1 = falcon_kit.mains.gen_gfa_v1:main',
  71. 'fc_get_read_ctg_map = falcon_kit.mains.get_read_ctg_map:main',
  72. 'fc_graph_to_contig = falcon_kit.mains.graph_to_contig:main',
  73. 'fc_graph_to_utgs = falcon_kit.mains.graph_to_utgs:main',
  74. 'fc_ovlp_filter = falcon_kit.mains.ovlp_filter:main',
  75. 'fc_ovlp_stats = falcon_kit.mains.ovlp_stats:main',
  76. 'fc_ovlp_to_graph = falcon_kit.mains.ovlp_to_graph:main',
  77. 'fc_pr_ctg_track = falcon_kit.mains.pr_ctg_track:main',
  78. 'fc_rr_ctg_track = falcon_kit.mains.rr_ctg_track:main',
  79. 'fc_run = falcon_kit.mains.run1:main',
  80. 'fc_run.py = falcon_kit.mains.run1:main',
  81. 'fc_run1 = falcon_kit.mains.run1:main',
  82. ],
  83. },
  84. extras_require={
  85. 'falcon-task': ['falcon_kit'],
  86. },
  87. scripts=scripts,
  88. zip_safe=False,
  89. install_requires=install_requires,
  90. )