Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BROKEN: try to update htslib #278

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cd htslib
autoheader && autoconf && autoreconf --install
./configure --enable-s3 --disable-lzma --disable-bz2
make
make version.h && make
cd ..
CYTHONIZE=1 python setup.py build_ext -i
- name: Test
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ include htslib/*.h
include htslib/htslib/*.h
include htslib/cram/*.c
include htslib/cram/*.h
include htslib/htscodecs/htscodecs/*.h
include htslib/htscodecs/htscodecs/*.c
2 changes: 1 addition & 1 deletion htslib
Submodule htslib updated 174 files
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython>=0.23.3
cython>=0.23.3,<3.0.0
numpy
coloredlogs
click
15 changes: 13 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ def no_cythonize(extensions, **_ignore):
if not any(e in x for e in ['irods', 'plugin'])
]
sources += glob.glob('htslib/cram/*.c')
sources += glob.glob('htslib/htscodecs/htscodecs/*.c')
sources += ['htslib/htscodecs/htscodecs/%s' % s for s in ['rle.c', 'arith_dynamic.c', 'pack.c', 'utils.c',
'htscodecs.c', 'fqzcomp_qual.c',
'rANS_static.c',
'rANS_static4x16pr.c',
'rANS_static32x16pr.c',
'rANS_static32x16pr_avx2.c',
'rANS_static32x16pr_avx512.c',
'rANS_static32x16pr_sse4.c',
'rANS_static32x16pr_neon.c',
]]

# Exclude the htslib sources containing main()'s
sources = [x for x in sources if not x.endswith(('htsfile.c', 'tabix.c', 'bgzip.c'))]
sources.append('cyvcf2/helpers.c')
Expand All @@ -65,7 +75,8 @@ def no_cythonize(extensions, **_ignore):
extra_compile_args=["-Wno-sign-compare", "-Wno-unused-function",
"-Wno-strict-prototypes",
"-Wno-unused-result", "-Wno-discarded-qualifiers"],
include_dirs=['htslib', 'cyvcf2', np.get_include()])]
library_dirs=['htslib', 'htslib/htscodecs/htscodecs'],
include_dirs=['htslib', 'cyvcf2', 'htslib/htscodecs/htscodecs', np.get_include()])]


CYTHONIZE = bool(int(os.getenv("CYTHONIZE", 0)))
Expand Down
Loading