pybcf 1.3.5__tar.gz → 1.3.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. pybcf-1.3.7/MANIFEST.in +20 -0
  2. {pybcf-1.3.5/src/pybcf.egg-info → pybcf-1.3.7}/PKG-INFO +13 -2
  3. {pybcf-1.3.5 → pybcf-1.3.7}/setup.py +12 -8
  4. {pybcf-1.3.5 → pybcf-1.3.7}/src/gzstream.cpp +24 -18
  5. {pybcf-1.3.5 → pybcf-1.3.7}/src/gzstream.h +4 -1
  6. {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf/reader.cpp +9908 -10415
  7. {pybcf-1.3.5 → pybcf-1.3.7/src/pybcf.egg-info}/PKG-INFO +13 -2
  8. pybcf-1.3.7/src/pybcf.egg-info/SOURCES.txt +203 -0
  9. pybcf-1.3.7/src/zlib-ng/CMakeLists.txt +1424 -0
  10. pybcf-1.3.7/src/zlib-ng/Makefile.in +406 -0
  11. pybcf-1.3.7/src/zlib-ng/arch/arm/Makefile.in +78 -0
  12. pybcf-1.3.7/src/zlib-ng/arch/arm/acle_intrins.h +35 -0
  13. pybcf-1.3.7/src/zlib-ng/arch/arm/adler32_neon.c +215 -0
  14. pybcf-1.3.7/src/zlib-ng/arch/arm/arm_features.c +115 -0
  15. pybcf-1.3.7/src/zlib-ng/arch/arm/arm_features.h +16 -0
  16. pybcf-1.3.7/src/zlib-ng/arch/arm/arm_functions.h +65 -0
  17. pybcf-1.3.7/src/zlib-ng/arch/arm/chunkset_neon.c +99 -0
  18. pybcf-1.3.7/src/zlib-ng/arch/arm/compare256_neon.c +60 -0
  19. pybcf-1.3.7/src/zlib-ng/arch/arm/crc32_acle.c +78 -0
  20. pybcf-1.3.7/src/zlib-ng/arch/arm/neon_intrins.h +65 -0
  21. pybcf-1.3.7/src/zlib-ng/arch/arm/slide_hash_armv6.c +47 -0
  22. pybcf-1.3.7/src/zlib-ng/arch/arm/slide_hash_neon.c +46 -0
  23. pybcf-1.3.7/src/zlib-ng/arch/generic/Makefile.in +75 -0
  24. pybcf-1.3.7/src/zlib-ng/arch/generic/adler32_c.c +54 -0
  25. pybcf-1.3.7/src/zlib-ng/arch/generic/adler32_fold_c.c +15 -0
  26. pybcf-1.3.7/src/zlib-ng/arch/generic/chunk_permute_table.h +53 -0
  27. pybcf-1.3.7/src/zlib-ng/arch/generic/chunkset_c.c +42 -0
  28. pybcf-1.3.7/src/zlib-ng/arch/generic/compare256_c.c +181 -0
  29. pybcf-1.3.7/src/zlib-ng/arch/generic/crc32_braid_c.c +215 -0
  30. pybcf-1.3.7/src/zlib-ng/arch/generic/crc32_fold_c.c +31 -0
  31. pybcf-1.3.7/src/zlib-ng/arch/generic/generic_functions.h +106 -0
  32. pybcf-1.3.7/src/zlib-ng/arch/generic/slide_hash_c.c +52 -0
  33. pybcf-1.3.7/src/zlib-ng/arch/power/Makefile.in +93 -0
  34. pybcf-1.3.7/src/zlib-ng/arch/power/adler32_power8.c +153 -0
  35. pybcf-1.3.7/src/zlib-ng/arch/power/adler32_vmx.c +186 -0
  36. pybcf-1.3.7/src/zlib-ng/arch/power/chunkset_power8.c +55 -0
  37. pybcf-1.3.7/src/zlib-ng/arch/power/compare256_power9.c +66 -0
  38. pybcf-1.3.7/src/zlib-ng/arch/power/crc32_constants.h +1123 -0
  39. pybcf-1.3.7/src/zlib-ng/arch/power/crc32_power8.c +589 -0
  40. pybcf-1.3.7/src/zlib-ng/arch/power/fallback_builtins.h +31 -0
  41. pybcf-1.3.7/src/zlib-ng/arch/power/power_features.c +49 -0
  42. pybcf-1.3.7/src/zlib-ng/arch/power/power_features.h +18 -0
  43. pybcf-1.3.7/src/zlib-ng/arch/power/power_functions.h +67 -0
  44. pybcf-1.3.7/src/zlib-ng/arch/power/slide_hash_power8.c +12 -0
  45. pybcf-1.3.7/src/zlib-ng/arch/power/slide_hash_vmx.c +10 -0
  46. pybcf-1.3.7/src/zlib-ng/arch/power/slide_ppc_tpl.h +31 -0
  47. pybcf-1.3.7/src/zlib-ng/arch/riscv/adler32_rvv.c +132 -0
  48. pybcf-1.3.7/src/zlib-ng/arch/riscv/chunkset_rvv.c +121 -0
  49. pybcf-1.3.7/src/zlib-ng/arch/riscv/compare256_rvv.c +49 -0
  50. pybcf-1.3.7/src/zlib-ng/arch/riscv/riscv_features.c +52 -0
  51. pybcf-1.3.7/src/zlib-ng/arch/riscv/riscv_features.h +18 -0
  52. pybcf-1.3.7/src/zlib-ng/arch/riscv/riscv_functions.h +49 -0
  53. pybcf-1.3.7/src/zlib-ng/arch/riscv/slide_hash_rvv.c +32 -0
  54. pybcf-1.3.7/src/zlib-ng/arch/s390/Makefile.in +48 -0
  55. pybcf-1.3.7/src/zlib-ng/arch/s390/crc32-vx.c +222 -0
  56. pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_common.h +119 -0
  57. pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_deflate.c +383 -0
  58. pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_deflate.h +58 -0
  59. pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_detail.h +275 -0
  60. pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_inflate.c +191 -0
  61. pybcf-1.3.7/src/zlib-ng/arch/s390/dfltcc_inflate.h +67 -0
  62. pybcf-1.3.7/src/zlib-ng/arch/s390/s390_features.c +14 -0
  63. pybcf-1.3.7/src/zlib-ng/arch/s390/s390_features.h +14 -0
  64. pybcf-1.3.7/src/zlib-ng/arch/s390/s390_functions.h +20 -0
  65. pybcf-1.3.7/src/zlib-ng/arch/x86/Makefile.in +140 -0
  66. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx2.c +145 -0
  67. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx2_p.h +32 -0
  68. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx512.c +108 -0
  69. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx512_p.h +46 -0
  70. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_avx512_vnni.c +210 -0
  71. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_sse42.c +120 -0
  72. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_ssse3.c +156 -0
  73. pybcf-1.3.7/src/zlib-ng/arch/x86/adler32_ssse3_p.h +29 -0
  74. pybcf-1.3.7/src/zlib-ng/arch/x86/chunkset_avx2.c +133 -0
  75. pybcf-1.3.7/src/zlib-ng/arch/x86/chunkset_sse2.c +56 -0
  76. pybcf-1.3.7/src/zlib-ng/arch/x86/chunkset_ssse3.c +93 -0
  77. pybcf-1.3.7/src/zlib-ng/arch/x86/compare256_avx2.c +64 -0
  78. pybcf-1.3.7/src/zlib-ng/arch/x86/compare256_sse2.c +97 -0
  79. pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_fold_pclmulqdq_tpl.h +199 -0
  80. pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_fold_vpclmulqdq_tpl.h +107 -0
  81. pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_pclmulqdq.c +30 -0
  82. pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_pclmulqdq_tpl.h +375 -0
  83. pybcf-1.3.7/src/zlib-ng/arch/x86/crc32_vpclmulqdq.c +17 -0
  84. pybcf-1.3.7/src/zlib-ng/arch/x86/slide_hash_avx2.c +39 -0
  85. pybcf-1.3.7/src/zlib-ng/arch/x86/slide_hash_sse2.c +62 -0
  86. pybcf-1.3.7/src/zlib-ng/arch/x86/x86_features.c +115 -0
  87. pybcf-1.3.7/src/zlib-ng/arch/x86/x86_features.h +28 -0
  88. pybcf-1.3.7/src/zlib-ng/arch/x86/x86_functions.h +172 -0
  89. pybcf-1.3.7/src/zlib-ng/arch/x86/x86_intrins.h +87 -0
  90. pybcf-1.3.7/src/zlib-ng/cmake/detect-arch.c +115 -0
  91. pybcf-1.3.7/src/zlib-ng/cmake/detect-arch.cmake +104 -0
  92. pybcf-1.3.7/src/zlib-ng/cmake/detect-coverage.cmake +46 -0
  93. pybcf-1.3.7/src/zlib-ng/cmake/detect-install-dirs.cmake +43 -0
  94. pybcf-1.3.7/src/zlib-ng/cmake/detect-intrinsics.cmake +604 -0
  95. pybcf-1.3.7/src/zlib-ng/cmake/detect-sanitizer.cmake +166 -0
  96. pybcf-1.3.7/src/zlib-ng/cmake/fallback-macros.cmake +19 -0
  97. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-aarch64.cmake +24 -0
  98. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-arm.cmake +29 -0
  99. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-armhf.cmake +25 -0
  100. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-aarch64.cmake +41 -0
  101. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-armv7.cmake +41 -0
  102. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-i686.cmake +41 -0
  103. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-llvm-mingw-x86_64.cmake +41 -0
  104. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mingw-i686.cmake +35 -0
  105. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mingw-x86_64.cmake +34 -0
  106. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mips.cmake +29 -0
  107. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-mips64.cmake +29 -0
  108. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc.cmake +25 -0
  109. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64-clang.cmake +16 -0
  110. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64-power9.cmake +25 -0
  111. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64.cmake +25 -0
  112. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64le-clang.cmake +16 -0
  113. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64le-power9.cmake +25 -0
  114. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-powerpc64le.cmake +25 -0
  115. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-riscv.cmake +28 -0
  116. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-s390x.cmake +25 -0
  117. pybcf-1.3.7/src/zlib-ng/cmake/toolchain-sparc64.cmake +25 -0
  118. pybcf-1.3.7/src/zlib-ng/gzread.c.in +606 -0
  119. pybcf-1.3.7/src/zlib-ng/zconf-ng.h.in +176 -0
  120. pybcf-1.3.7/src/zlib-ng/zconf.h.in +206 -0
  121. pybcf-1.3.7/src/zlib-ng/zlib-config.cmake.in +12 -0
  122. pybcf-1.3.7/src/zlib-ng/zlib-ng-config.cmake.in +10 -0
  123. pybcf-1.3.7/src/zlib-ng/zlib-ng.h.in +1871 -0
  124. pybcf-1.3.7/src/zlib-ng/zlib.h.in +1859 -0
  125. pybcf-1.3.7/src/zlib-ng/zlib.pc.cmakein +14 -0
  126. pybcf-1.3.7/src/zlib-ng/zlib.pc.in +14 -0
  127. pybcf-1.3.7/src/zlib-ng/zlib_name_mangling-ng.h.in +178 -0
  128. pybcf-1.3.7/src/zlib-ng/zlib_name_mangling.h.empty +8 -0
  129. pybcf-1.3.7/src/zlib-ng/zlib_name_mangling.h.in +170 -0
  130. {pybcf-1.3.5 → pybcf-1.3.7}/test/test_indexed.py +14 -0
  131. pybcf-1.3.5/MANIFEST.in +0 -14
  132. pybcf-1.3.5/src/pybcf.egg-info/SOURCES.txt +0 -82
  133. {pybcf-1.3.5 → pybcf-1.3.7}/LICENSE.txt +0 -0
  134. {pybcf-1.3.5 → pybcf-1.3.7}/README.md +0 -0
  135. {pybcf-1.3.5 → pybcf-1.3.7}/pyproject.toml +0 -0
  136. {pybcf-1.3.5 → pybcf-1.3.7}/setup.cfg +0 -0
  137. {pybcf-1.3.5 → pybcf-1.3.7}/src/bcf.cpp +0 -0
  138. {pybcf-1.3.5 → pybcf-1.3.7}/src/bcf.h +0 -0
  139. {pybcf-1.3.5 → pybcf-1.3.7}/src/header.cpp +0 -0
  140. {pybcf-1.3.5 → pybcf-1.3.7}/src/header.h +0 -0
  141. {pybcf-1.3.5 → pybcf-1.3.7}/src/index.cpp +0 -0
  142. {pybcf-1.3.5 → pybcf-1.3.7}/src/index.h +0 -0
  143. {pybcf-1.3.5 → pybcf-1.3.7}/src/info.cpp +0 -0
  144. {pybcf-1.3.5 → pybcf-1.3.7}/src/info.h +0 -0
  145. {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf/__init__.py +0 -0
  146. {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf/reader.pyx +0 -0
  147. {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf.egg-info/dependency_links.txt +0 -0
  148. {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf.egg-info/requires.txt +0 -0
  149. {pybcf-1.3.5 → pybcf-1.3.7}/src/pybcf.egg-info/top_level.txt +0 -0
  150. {pybcf-1.3.5 → pybcf-1.3.7}/src/sample_data.cpp +0 -0
  151. {pybcf-1.3.5 → pybcf-1.3.7}/src/sample_data.h +0 -0
  152. {pybcf-1.3.5 → pybcf-1.3.7}/src/types.h +0 -0
  153. {pybcf-1.3.5 → pybcf-1.3.7}/src/variant.cpp +0 -0
  154. {pybcf-1.3.5 → pybcf-1.3.7}/src/variant.h +0 -0
  155. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/adler32.c +0 -0
  156. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/adler32_p.h +0 -0
  157. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/arch_functions.h +0 -0
  158. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/chunkset_tpl.h +0 -0
  159. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/compare256_rle.h +0 -0
  160. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/compress.c +0 -0
  161. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/cpu_features.c +0 -0
  162. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/cpu_features.h +0 -0
  163. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32.c +0 -0
  164. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32.h +0 -0
  165. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_comb.c +0 -0
  166. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_comb_p.h +0 -0
  167. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_p.h +0 -0
  168. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/crc32_braid_tbl.h +0 -0
  169. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate.c +0 -0
  170. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate.h +0 -0
  171. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_fast.c +0 -0
  172. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_huff.c +0 -0
  173. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_medium.c +0 -0
  174. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_p.h +0 -0
  175. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_quick.c +0 -0
  176. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_rle.c +0 -0
  177. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_slow.c +0 -0
  178. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/deflate_stored.c +0 -0
  179. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/fallback_builtins.h +0 -0
  180. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/functable.c +0 -0
  181. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/functable.h +0 -0
  182. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/gzguts.h +0 -0
  183. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/gzlib.c +0 -0
  184. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/gzwrite.c +0 -0
  185. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/infback.c +0 -0
  186. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inffast_tpl.h +0 -0
  187. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inffixed_tbl.h +0 -0
  188. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inflate.c +0 -0
  189. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inflate.h +0 -0
  190. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inflate_p.h +0 -0
  191. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inftrees.c +0 -0
  192. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/inftrees.h +0 -0
  193. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/insert_string.c +0 -0
  194. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/insert_string_roll.c +0 -0
  195. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/insert_string_tpl.h +0 -0
  196. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/match_tpl.h +0 -0
  197. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees.c +0 -0
  198. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees.h +0 -0
  199. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees_emit.h +0 -0
  200. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/trees_tbl.h +0 -0
  201. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/uncompr.c +0 -0
  202. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zbuild.h +0 -0
  203. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zendian.h +0 -0
  204. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zutil.c +0 -0
  205. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zutil.h +0 -0
  206. {pybcf-1.3.5 → pybcf-1.3.7}/src/zlib-ng/zutil_p.h +0 -0
  207. {pybcf-1.3.5 → pybcf-1.3.7}/test/test_pybcf.py +0 -0
@@ -0,0 +1,20 @@
1
+ # pybcf code
2
+ include MANIFEST.in
3
+ include pyproject.toml
4
+ include src/pybcf/*.cpp
5
+ include src/pybcf/*.py
6
+ include src/pybcf/*.pyx
7
+ include src/*.h
8
+ include src/*.cpp
9
+ include src/gzstream.h
10
+ include src/gzstream.C
11
+ include src/zlib-ng/*.h
12
+ include src/zlib-ng/*.c
13
+ include src/zlib-ng/CMakeLists.txt
14
+ include src/zlib-ng/*.in
15
+ include src/zlib-ng/*.cmakein
16
+ include src/zlib-ng/*.empty
17
+ recursive-include src/zlib-ng/cmake/ *
18
+ recursive-include src/zlib-ng/arch/ *.c
19
+ recursive-include src/zlib-ng/arch/ *.h
20
+ recursive-include src/zlib-ng/arch/ *.in
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pybcf
3
- Version: 1.3.5
3
+ Version: 1.3.7
4
4
  Summary: Package for loading data from bcf files
5
5
  Home-page: https://github.com/jeremymcrae/pybcf
6
6
  Author: Jeremy McRae
@@ -13,6 +13,17 @@ License-File: LICENSE.txt
13
13
  Requires-Dist: numpy
14
14
  Provides-Extra: test
15
15
  Requires-Dist: pysam; extra == "test"
16
+ Dynamic: author
17
+ Dynamic: author-email
18
+ Dynamic: classifier
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: license
23
+ Dynamic: license-file
24
+ Dynamic: provides-extra
25
+ Dynamic: requires-dist
26
+ Dynamic: summary
16
27
 
17
28
 
18
29
  ### pybcf
@@ -13,13 +13,12 @@ from Cython.Build import cythonize
13
13
  EXTRA_LINK_ARGS = []
14
14
  EXTRA_COMPILE_ARGS = []
15
15
  if sys.platform == 'linux':
16
- EXTRA_COMPILE_ARGS = ['-std=c++11', '-I/usr/include']
16
+ EXTRA_COMPILE_ARGS = ['-std=c++11', '-I/usr/include', '-O2']
17
17
  elif sys.platform == "darwin":
18
18
  EXTRA_COMPILE_ARGS += [
19
19
  "-stdlib=libc++",
20
20
  "-std=c++11",
21
- '-mavx', # required for macosx testing on github actions
22
- '-mavx2', # required for macosx testing on github actions
21
+ '-O2',
23
22
  "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1",
24
23
  "-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include",
25
24
  ]
@@ -29,9 +28,12 @@ elif sys.platform == "darwin":
29
28
  elif sys.platform == "win32":
30
29
  EXTRA_COMPILE_ARGS += ['/std:c++14', '/O2']
31
30
 
32
- if platform.machine() == 'x86_64':
31
+ if platform.machine() == 'x86_64' and sys.platform != "darwin":
33
32
  EXTRA_COMPILE_ARGS += ['-mavx', '-mavx2']
34
33
 
34
+ if platform.machine() == 'aarch64' and sys.platform == "linux":
35
+ EXTRA_COMPILE_ARGS += ['-flax-vector-conversions']
36
+
35
37
  def build_zlib():
36
38
  ''' compile zlib code to object files for linking
37
39
 
@@ -47,15 +49,17 @@ def build_zlib():
47
49
  cmd = ['cmake', '-S', source_dir, '-B', build_dir,
48
50
  '-DZLIB_COMPAT=ON',
49
51
  '-DZLIB_ENABLE_TESTS=OFF',
50
- f'-DCMAKE_C_FLAGS="-fPIC"',
52
+ '-DBUILD_SHARED_LIBS=OFF',
53
+ '-DCMAKE_C_FLAGS="-fPIC"',
51
54
  ]
52
55
  subprocess.run(cmd)
53
- subprocess.run(['cmake', '--build', build_dir, '--config', 'Release'])
56
+ subprocess.run(['cmake', '--build', build_dir, '-v', '--config', 'Release'])
54
57
  os.chdir(cur_dir)
55
58
 
56
59
  objs = [str(build_dir / 'libz.a')]
57
60
  if sys.platform == 'win32':
58
- objs = [str(build_dir / 'Release' / 'zlib.lib')]
61
+ objs = [str(build_dir / 'Release' / 'zlibstatic.lib'),
62
+ ]
59
63
 
60
64
  return str(build_dir), objs
61
65
 
@@ -82,7 +86,7 @@ setup(name='pybcf',
82
86
  description='Package for loading data from bcf files',
83
87
  long_description=io.open('README.md', encoding='utf-8').read(),
84
88
  long_description_content_type='text/markdown',
85
- version='1.3.5',
89
+ version='1.3.7',
86
90
  author='Jeremy McRae',
87
91
  author_email='jmcrae@illumina.com',
88
92
  license="MIT",
@@ -30,8 +30,8 @@
30
30
  #include <iostream>
31
31
  #include <string.h> // for memcpy
32
32
  #include <stdexcept>
33
- #include <fcntl.h>
34
- #include <unistd.h>
33
+
34
+ #include <iostream>
35
35
 
36
36
  #ifdef GZSTREAM_NAMESPACE
37
37
  namespace GZSTREAM_NAMESPACE {
@@ -54,6 +54,11 @@ void get_fmode( char* fmode, int open_mode) {
54
54
  }
55
55
 
56
56
  gzstreambuf* gzstreambuf::open( const char* name, int open_mode) {
57
+ filename = std::string(name);
58
+ // const size_t n = strlen(name); // excludes null terminator
59
+ // filename = new char[n + 1]{}; // {} zero initializes array
60
+ // std::copy_n(name, n, filename);
61
+
57
62
  if ( is_open())
58
63
  return (gzstreambuf*)0;
59
64
  mode = open_mode;
@@ -61,10 +66,13 @@ gzstreambuf* gzstreambuf::open( const char* name, int open_mode) {
61
66
  if ((mode & std::ios::ate) || (mode & std::ios::app)
62
67
  || ((mode & std::ios::in) && (mode & std::ios::out)))
63
68
  return (gzstreambuf*)0;
64
- char fmode[10];
65
69
  get_fmode(fmode, mode);
66
- fd = ::open(name, open_mode);
67
- file = gzdopen( fd, fmode);
70
+ handle = fopen(filename.c_str(), fmode);
71
+ if (!handle) {
72
+ return 0;
73
+ }
74
+
75
+ file = gzdopen(fileno(handle), fmode);
68
76
  if (file == 0)
69
77
  return (gzstreambuf*)0;
70
78
  opened = 1;
@@ -90,20 +98,18 @@ void gzstreambuf::seek(bcf::Offsets offset) {
90
98
  buffer + 4, // read position
91
99
  buffer + 4); // end position
92
100
 
93
- // We must close the previous gzFile, otherwise we leak memory on each seek.
94
- // But when we close the gzFile, this also closes the file descriptor, so we
95
- // duplicate the file descriptor first.
96
- int new_fd = dup(fd);
97
-
98
- // seek using the file descriptor to an offset in the compressed file
99
- ::lseek(new_fd, offset.c_offset, SEEK_SET);
100
-
101
- // open a new gzfile object using the file descriptor (at new offset)
102
- char fmode[10];
103
- get_fmode(fmode, mode);
104
- file = gzdopen(new_fd, fmode);
105
- fd = new_fd;
101
+ // close old gzfile object and associated file handle
102
+ fclose(handle);
103
+ gzclose(file);
104
+
105
+ // open new file handle, and seek to an offset in the compressed file
106
+ handle = fopen(filename.c_str(), fmode);
107
+ fseek(handle, offset.c_offset, SEEK_SET);
108
+ ftell(handle);
106
109
 
110
+ // open new gzfile object using the file descriptor (at new offset);
111
+ file = gzdopen(fileno(handle), fmode);
112
+
107
113
  if (file == 0) {
108
114
  throw std::invalid_argument("cannot seek within this gzfile");
109
115
  }
@@ -33,6 +33,7 @@
33
33
  #include <iostream>
34
34
  #include <string>
35
35
  #include <fstream>
36
+ #include <cstdio>
36
37
  #include "zlib.h"
37
38
 
38
39
  #include "index.h"
@@ -54,7 +55,9 @@ private:
54
55
  char buffer[bufferSize]; // data buffer
55
56
  char opened; // open/close state of stream
56
57
  int mode; // I/O mode
57
- int fd=-1;
58
+ char fmode[10];
59
+ FILE * handle;
60
+ std::string filename;
58
61
  public:
59
62
  gzstreambuf() : opened(0) {
60
63
  setp( buffer, buffer + (bufferSize-1));