Skip to content

Commit 0b713dc

Browse files
committed
Fix Windows test failure and speed up docs build
Use ucrtbase instead of dlopen(None) for malloc on Windows, fixing cffi collection error during doctest-modules. Use COMPACT=1 for the docs Docker build to skip type specializations.
1 parent a0a1551 commit 0b713dc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
docker build --target psg \
2525
--build-arg SUITESPARSE=v$(cat GB_VERSION.txt) \
2626
--build-arg VERSION=99.0.0.0 \
27+
--build-arg COMPACT=1 \
2728
-t psg-docs .
2829
2930
- name: Generate docs with pdoc

suitesparse_graphblas/api/io/binary.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from ctypes.util import find_library
23
from pathlib import Path
34

@@ -10,7 +11,10 @@
1011
stdffi.cdef("""
1112
void *malloc(size_t size);
1213
""")
13-
stdlib = stdffi.dlopen(find_library("c"))
14+
if sys.platform == "win32":
15+
stdlib = stdffi.dlopen("ucrtbase")
16+
else:
17+
stdlib = stdffi.dlopen(find_library("c"))
1418

1519
# When "packing" a matrix the owner of the memory buffer is transfered
1620
# to SuiteSparse, which then becomes responsible for freeing it. cffi

0 commit comments

Comments
 (0)