Document how to add a new C extension module
Offen
@tiran arbeitet bereits daran.
Seit 09.7.2022.
topic-c api
topic-dev process
type-feature
- Vorherrschende Sprache
- Python
- Sterne
- 2.1k
- Forks
- 1k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 12
Beschreibung
memo to me
Python 3.12 will drop setup.py. 3.11 has already detects most modules on configure and builds them through Modules/Setup.stdlib. The new system is not well documented yet.
configure.ac
PY_STDLIB_MOD/PY_STDLIB_MOD_SIMPLESRCDIRSif module is in a subdirectory- How to write
PKG_CHECK_MODULESblock
Modules/Setup.stdlib.in
@MODULE_SPAM_TRUE@spam spam.c egg.c
Makefile.pre.in
MODULE_SPAM_DEPS=$(srcdir)/Modules/spam.h
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.