Skip to content

Commit 914c8f1

Browse files
committed
test fix
1 parent b054f53 commit 914c8f1

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

conda-recipe/meta.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ build:
2727
cmake --install build/standalone
2828
cd cli
2929
python -m pip install . --no-deps --ignore-installed --prefix=$PREFIX
30-
#cd ..
31-
#pytest tests/python
30+
cd ..
31+
export PYTHONPATH="$PREFIX:$PYTHONPATH";
32+
pytest tests/python
3233
3334
requirements:
3435
build:
@@ -51,6 +52,10 @@ requirements:
5152
- cmake
5253
run:
5354
- python >=3.9,<3.14
55+
- xz # for liblzma for htslib
56+
- libcurl
57+
- bzip2
58+
- libzlib
5459

5560
about:
5661
home: {{ REPO_HOME }}

cpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ include(htslib)
5858
# if htslib is not in your environment, then build htslib from source
5959
if(NOT HTSlib_FOUND)
6060
add_dependencies(${PROJECT_NAME} htslib)
61+
# also ensure the htslib target itself sees _GNU_SOURCE
62+
target_compile_definitions(htslib PRIVATE _GNU_SOURCE)
6163
endif()
6264

6365
# Link dependencies

0 commit comments

Comments
 (0)