Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Document how to add a new C extension module

Open
#913 1 comment 1 reaction 1 assignee View on GitHub

@tiran is already working on this.

Since Jul 9, 2022.

Assessment

This issue has not been assessed yet.

Description

topic-c api topic-dev process type-feature

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_SIMPLE
  • SRCDIRS if module is in a subdirectory
  • How to write PKG_CHECK_MODULES block

Modules/Setup.stdlib.in

  • @MODULE_SPAM_TRUE@spam spam.c egg.c

Makefile.pre.in

  • MODULE_SPAM_DEPS=$(srcdir)/Modules/spam.h
Dominant language
Python
Stars
2.1k
Forks
1k
Avg merge
2d 12h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/devguide

All issues in python/devguide

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.