Skip to content

Commit c81a6fd

Browse files
committed
Document how to link with the C-Blosc2 library separately
1 parent 2dec146 commit c81a6fd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README_DEVELOPERS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ You are done!
2222
pip install . # add -e for editable mode
2323
```
2424

25+
There are situations where you may want to build the C-Blosc2 library separately, for example, when debugging issues in the C library. In that case, let's assume you have the C-Blosc2 library installed in `/usr/local`:
26+
27+
```bash
28+
CMAKE_PREFIX_PATH=/usr/local USE_SYSTEM_BLOSC2=1 pip install -e .
29+
```
30+
31+
and then, you can run the tests with:
32+
33+
```bash
34+
LD_LIBRARY_PATH=/usr/local/lib pytest
35+
```
36+
37+
[replace `LD_LIBRARY_PATH` with the appropriate environment variable for your system, such as `DYLD_LIBRARY_PATH` on macOS or `PATH` on Windows, if necessary].
38+
2539
That's it! You can now proceed to the testing section.
2640

2741
## Testing

0 commit comments

Comments
 (0)