GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Extending/embedding Python documentation outdated/incomplete · Issue #88052 · python/cpython

Extending/embedding Python documentation outdated/incomplete #88052

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Extending/embedding Python documentation outdated/incomplete#88052
Copy link
Labels
3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

fedeevol
mannequin
opened on Apr 19, 2021
Issue body actions
BPO 43886

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-04-19.09:06:07.774>
labels = ['type-bug', '3.9', 'docs']
title = 'Extending/embedding Python documentation outdated/incomplete'
updated_at = <Date 2021-04-19.09:11:00.326>
user = 'https://bugs.python.org/fedeevol'

bugs.python.org fields:

activity = <Date 2021-04-19.09:11:00.326>
actor = 'fede.evol'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2021-04-19.09:06:07.774>
creator = 'fede.evol'
dependencies = []
files = []
hgrepos = []
issue_num = 43886
keywords = []
message_count = 2.0
messages = ['391370', '391371']
nosy_count = 2.0
nosy_names = ['docs@python', 'fede.evol']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue43886'
versions = ['Python 3.9']

Activity

  1. fedeevol commented on Apr 19, 2021

    @fedeevol
    fedeevolmannequin
    on Apr 19, 2021
    MannequinAuthor
    More actions

    Hello,
    We had lately some issues with various possible variants of compilation (static vs dynamic) with reference to both embedding and extending Python. There are a bunch of tickets on the topic (ie. gh-65735 or gh-78490) but I guess one important point is that the documentation seems to be not very clear on this. Also various Linux distros seem to take very different approaches (static/dynamic).

    Infact from the current documentation it seems unclear if python-config should be used for both or not. We found also some references to a newer --embed flag (see ie. gh-80902) which is not mentioned in the documentation.
    Some other sources suggest that python-config should not be used when Python is build with Py_ENABLE_SHARED=1. (ref. here: conda/conda-build#2738 (comment))

    Also the example looks probably outdated, as it mentions Python 3.4

    It would be nice if some light would be shed on the correct practice to use and the official documentation updated.

    Thanks,
    Federico

  2. fedeevol
    added
    3.9 (EOL)end of lifeend of life
    on Apr 19, 2021
  3. fedeevol
    assigned
    docspython
    on Apr 19, 2021
  4. fedeevol
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.9 (EOL)end of lifeend of life
    on Apr 19, 2021
  5. fedeevol
    assigned
    docspython
    on Apr 19, 2021
  6. fedeevol
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Apr 19, 2021
  7. fedeevol commented on Apr 19, 2021

    @fedeevol
    fedeevolmannequin
    on Apr 19, 2021
    MannequinAuthor
    More actions

    Just a small addition:

    Specifically in the documentation it talks about embedding:

    "
    It is not necessarily trivial to find the right flags to pass to your compiler (and linker) in order to embed the Python interpreter into your application, particularly because Python needs to load library modules implemented as C dynamic extensions (.so files) linked against it.

    To find out the required compiler and linker flags, you can execute the pythonX.Y-config script which is generated as part of the installation process (a python3-config script may also be available). This script has several options, of which the following will be directly useful to you:
    "

    But doesn't really say anything about extensions. Is the same python-config used therefore for extensions as well?

  8. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  9. encukou commented on Jun 18, 2025

    @encukou
    encukou
    on Jun 18, 2025
    Member
    More actions

    The CPython project provides a python-config, but also it's up to the redistributor (Linux distros, Conda, etc.) to make sure this gets installed and matches the install location.
    With distutils gone, more responsibility now lies with third-party projects such as setuptools. See also PEP-739 for recent related development.

    The forum is a much better place for discussions like this. Issues work better if they describe a task to be done in this repo.
    With that, I'll close the issue here.

  10. encukou
    closed this as not plannedon Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.9 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.