renamed module name from minimap2 to mmappy

minimap2 clashed with minimap2 from conda
This commit is contained in:
Heng Li
2017-09-16 23:29:41 -04:00
parent 06b79c4a52
commit 28fd3d63fd
8 changed files with 43 additions and 43 deletions

View File

@@ -9,9 +9,9 @@ cmdclass = {}
try:
from Cython.Build import build_ext
except ImportError: # without Cython
module_src = 'python/minimap2.c'
module_src = 'python/mmappy.c'
else: # with Cython
module_src = 'python/minimap2.pyx'
module_src = 'python/mmappy.pyx'
cmdclass['build_ext'] = build_ext
import sys
@@ -22,8 +22,8 @@ def readme():
return f.read()
setup(
name = 'minimap2',
version = '2.2rc',
name = 'mmappy',
version = '2.2rc1',
url = 'https://github.com/lh3/minimap2',
description = 'Minimap2 python binding',
long_description = readme(),
@@ -31,13 +31,13 @@ setup(
author_email = 'lh3@me.com',
license = 'MIT',
keywords = ['bioinformatics', 'sequence-alignment'],
ext_modules = [Extension('minimap2',
ext_modules = [Extension('mmappy',
sources = [module_src, 'align.c', 'bseq.c', 'chain.c', 'format.c', 'hit.c', 'index.c',
'ksw2_extd2_sse.c', 'ksw2_exts2_sse.c', 'ksw2_extz2_sse.c', 'ksw2_ll_sse.c',
'kalloc.c', 'kthread.c', 'map.c', 'misc.c', 'sdust.c', 'sketch.c'],
depends = ['minimap.h', 'bseq.h', 'kalloc.h', 'kdq.h', 'khash.h', 'kseq.h', 'ksort.h',
'ksw2.h', 'kthread.h', 'kvec.h', 'mmpriv.h', 'sdust.h',
'python/cminimap2.h', 'python/cminimap2.pxd'],
'python/cmmappy.h', 'python/cmmappy.pxd'],
extra_compile_args = ['-msse4'], # WARNING: ancient x86_64 CPUs don't have SSE4
include_dirs = ['.'],
libraries = ['z', 'm', 'pthread'])],