Skip to content

Commit 347a8f8

Browse files
committed
Fix builds for CPython on Windows
1 parent 59c6d01 commit 347a8f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpython/cppbuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ case $PLATFORM in
179179
cp win32/*.dll win32/*.pyd ../../lib/
180180
cd ..
181181
cp -r Lib/* ../lib/
182-
cp -r Include/* PC/pyconfig.h ../include/
182+
cp -r Include/* PCbuild/win32/pyconfig.h ../include/
183183
unzip -o ../lib/ensurepip/_bundled/pip* -d ../lib/
184184
# unzip -o ../lib/ensurepip/_bundled/setuptools* -d ../lib/
185185
;;
@@ -192,7 +192,7 @@ case $PLATFORM in
192192
cp amd64/*.dll amd64/*.pyd ../../lib/
193193
cd ..
194194
cp -r Lib/* ../lib/
195-
cp -r Include/* PC/pyconfig.h ../include/
195+
cp -r Include/* PCbuild/amd64/pyconfig.h ../include/
196196
unzip -o ../lib/ensurepip/_bundled/pip* -d ../lib/
197197
# unzip -o ../lib/ensurepip/_bundled/setuptools* -d ../lib/
198198
;;

cpython/src/main/java/org/bytedeco/cpython/presets/python.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public void map(InfoMap infoMap) {
372372
.put(new Info("PyThreadFrameGetter", "jmp_buf", "_PyInterpreterFrame", "_stack_chunk", "_PyExecutorObject").cast().pointerTypes("Pointer"))
373373

374374
.put(new Info("_Py_memory_order", "PyThreadState::_preserve_36_ABI_1", "PyThreadState::_preserve_36_ABI_2",
375-
"_PyGC_generation0", "_PyBytes_InsertThousandsGroupingLocale",
375+
"_PyGC_generation0", "_PyBytes_InsertThousandsGroupingLocale","_PyTrash_begin", "_PyTrash_end",
376376
"_PyBytes_InsertThousandsGrouping", "_PyUnicode_DecodeUnicodeInternal",
377377
"_PyFloat_Repr", "_PyFloat_Digits", "_PyFloat_DigitsInit", "_PyErr_SetImportErrorWithNameFrom",
378378
"PySortWrapper_Type", "PyCmpWrapper_Type", "_PyGen_yf", "_PyAIterWrapper_New",

0 commit comments

Comments
 (0)