Skip to content

Commit 345625e

Browse files
committed
Don't import ref_cache/ external tool source code or mpileup2/*.[ch]
Omit the htslib/ref_cache/ source code, and hard-code a configure --disable-ref-cache argument accordingly. BCFtools's mpileup2/* is currently used only by plugins/vrfs.c which we don't wrap, so we can (for now) omit this mpileup2/* code too.
1 parent bbad7c5 commit 345625e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

devtools/import.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@
3232
"vcf-miniview.c",
3333
),
3434
"bcftools": (
35+
"mpileup2",
3536
"test", "plugins", "peakfit.c",
3637
"peakfit.h",
3738
"polysomy.c"),
3839
"htslib": (
3940
'annot-tsv.c', 'bgzip.c', 'htsfile.c', 'tabix.c',
4041
'hts_probe_cc.sh',
41-
"samples", "test", "tests"),
42+
"ref_cache", "samples", "test", "tests"),
4243
}
4344

4445

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ def changedir(path):
6161
def run_configure(option):
6262
sys.stdout.flush()
6363
try:
64+
# Always disable ref-cache as its code is omitted from pysam's htslib/
6465
retcode = subprocess.call(
65-
" ".join(("./configure", option)),
66+
" ".join(("./configure", "--disable-ref-cache", option)),
6667
shell=True)
6768
if retcode != 0:
6869
return False

0 commit comments

Comments
 (0)