Skip to content

Commit d0521dd

Browse files
committed
Split _blake extension configuratoin for 3.14
1 parent 2bd9973 commit d0521dd

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

cpython-unix/extension-modules.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,28 @@ _bisect:
1919
- _bisectmodule.c
2020

2121
_blake2:
22-
maximum-python-version: "3.13"
23-
sources:
24-
- _blake2/blake2module.c
25-
- _blake2/blake2b_impl.c
26-
- _blake2/blake2s_impl.c
22+
# In 3.14+, Blake2 is provided by Hacl*
23+
sources-conditional:
24+
- sources:
25+
- _blake2/blake2module.c
26+
- _blake2/blake2b_impl.c
27+
- _blake2/blake2s_impl.c
28+
maximum-python-version: "3.13"
29+
- sources:
30+
- blake2module.c
31+
- _hacl/Hacl_Hash_Blake2s.c
32+
- _hacl/Hacl_Hash_Blake2b.c
33+
- _hacl/Lib_Memzero0.c
34+
minimum-python-version: "3.14"
35+
includes-conditional:
36+
- includes:
37+
- Modules/_hacl
38+
- Modules/_hacl/include
39+
- Modules/_hacl/internal
40+
minimum-python-version: "3.14"
41+
links-conditional:
42+
- name: :libHacl_Hash_Blake2.a
43+
minimum-python-version: "3.14"
2744

2845
_bz2:
2946
sources:

0 commit comments

Comments
 (0)