File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 14
14
- uses : actions/setup-python@v5
15
15
with :
16
16
python-version : ${{ matrix.python-version }}
17
-
18
- - name : Install dependencies with pinned NumPy on Win/Py3.13
19
- # This step pins NumPy to a working version ONLY for the configuration
20
- # that is known to fail with numpy 2.3.0.
21
- if : matrix.os == 'windows' && matrix.python-version == '3.13'
22
- run : python -m pip install "numpy<2.3"
23
17
24
18
- name : Build and install
25
19
run : python -m pip install .
Original file line number Diff line number Diff line change 29
29
libraries = []
30
30
extra_objects = []
31
31
32
+ # Add this block to define conditional compile arguments
33
+ macros = []
34
+ if sys .platform == 'win32' and sys .version_info >= (3 , 13 ):
35
+ print ("Enabling Py_TRACE_REFS for Python 3.13+ on Windows" )
36
+ macros .append (('Py_TRACE_REFS' , '1' ))
32
37
33
38
ext_modules = [
34
39
Extension (
35
40
'hnswlib' ,
36
41
source_files ,
37
42
include_dirs = include_dirs ,
43
+ define_macros = macros ,
38
44
libraries = libraries ,
39
45
language = 'c++' ,
40
46
extra_objects = extra_objects ,
You can’t perform that action at this time.
0 commit comments