File tree 9 files changed +660
-147
lines changed
Filter options
9 files changed +660
-147
lines changed
Original file line number Diff line number Diff line change @@ -340,10 +340,6 @@ IO_OBJS= \
340
340
Modules/_io/bytesio.o \
341
341
Modules/_io/stringio.o
342
342
343
- ##########################################################################
344
-
345
- LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
346
-
347
343
##########################################################################
348
344
# Parser
349
345
@@ -2519,14 +2515,15 @@ Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h
2519
2515
.PHONY: gdbhooks
2520
2516
2521
2517
##########################################################################
2522
- # Module dependencies
2518
+ # Module dependencies and platform-specific files
2523
2519
2524
2520
MODULE_CMATH_DEPS=$(srcdir)/Modules/_math.h
2525
2521
MODULE_MATH_DEPS=$(srcdir)/Modules/_math.h
2526
2522
MODULE_PYEXPAT_DEPS=$(LIBEXPAT_HEADERS) @LIBEXPAT_INTERNAL@
2527
2523
MODULE_UNICODEDATA_DEPS=$(srcdir)/Modules/unicodedata_db.h $(srcdir)/Modules/unicodename_db.h
2528
2524
MODULE__BLAKE2_DEPS=$(srcdir)/Modules/_blake2/impl/blake2-config.h $(srcdir)/Modules/_blake2/impl/blake2-impl.h $(srcdir)/Modules/_blake2/impl/blake2.h $(srcdir)/Modules/_blake2/impl/blake2b-load-sse2.h $(srcdir)/Modules/_blake2/impl/blake2b-load-sse41.h $(srcdir)/Modules/_blake2/impl/blake2b-ref.c $(srcdir)/Modules/_blake2/impl/blake2b-round.h $(srcdir)/Modules/_blake2/impl/blake2b.c $(srcdir)/Modules/_blake2/impl/blake2s-load-sse2.h $(srcdir)/Modules/_blake2/impl/blake2s-load-sse41.h $(srcdir)/Modules/_blake2/impl/blake2s-load-xop.h $(srcdir)/Modules/_blake2/impl/blake2s-ref.c $(srcdir)/Modules/_blake2/impl/blake2s-round.h $(srcdir)/Modules/_blake2/impl/blake2s.c $(srcdir)/Modules/_blake2/blake2module.h $(srcdir)/Modules/hashlib.h
2529
- MODULE__CTYPES_DEPS=$(srcdir)/Modules/_ctypes/ctypes.h
2525
+ MODULE__CTYPES_DEPS=$(srcdir)/Modules/_ctypes/ctypes.h $(srcdir)/Modules/_ctypes/darwin/dlfcn.h
2526
+ MODULE__CTYPES_MALLOC_CLOSURE=@MODULE__CTYPES_MALLOC_CLOSURE@
2530
2527
MODULE__DECIMAL_DEPS=$(srcdir)/Modules/_decimal/docstrings.h $(LIBMPDEC_HEADERS) @LIBMPDEC_INTERNAL@
2531
2528
MODULE__ELEMENTTREE_DEPS=$(srcdir)/Modules/pyexpat.c $(LIBEXPAT_HEADERS) @LIBEXPAT_INTERNAL@
2532
2529
MODULE__HASHLIB_DEPS=$(srcdir)/Modules/hashlib.h
Original file line number Diff line number Diff line change
1
+ :mod: `ctypes ` dependency ``libffi `` is now detected with ``pkg-config ``.
Original file line number Diff line number Diff line change 136
136
#
137
137
138
138
# needs -lffi and -ldl
139
- # @MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c
139
+ @MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c @MODULE__CTYPES_MALLOC_CLOSURE@
140
140
141
141
# needs -lncurses, -lncursesw or -lcurses, sometimes -ltermcap
142
142
# @MODULE__CURSES_TRUE@_curses _cursesmodule.c
Original file line number Diff line number Diff line change 54
54
55
55
*/
56
56
57
+ #ifndef Py_BUILD_CORE_BUILTIN
58
+ # define Py_BUILD_CORE_MODULE 1
59
+ #endif
57
60
#define NEEDS_PY_IDENTIFIER
58
61
59
62
#include "Python.h"
Original file line number Diff line number Diff line change
1
+ #ifndef Py_BUILD_CORE_BUILTIN
2
+ # define Py_BUILD_CORE_MODULE 1
3
+ #endif
1
4
#include <Python.h>
2
5
#include <ffi.h>
3
6
#ifdef MS_WIN32
You can’t perform that action at this time.
0 commit comments