Sitelet https://github.com/python/devguide/issues/1102#top
Skip to content

Instructions for adding a new definition to the limited API don't work on platforms without make #1102

Description

@AlexWaygood

Describe the bug

In the devguide here, it states:

Regenerate the autogenerated files using make regen-limited-abi. On platforms without make, run this command directly:

./python ./Tools/scripts/stable_abi.py --generate-all ./Misc/stable_abi.toml

I'm using a platform without make, so I went for the second option. Unfortunately, there's no such script! Tools/scripts/stable_api.py doesn't exist in the CPython repo currently. As such, the instructions didn't work.

Expected behavior

I expected the instructions to work

Activity

  1. encukou commented on May 30, 2023

    @encukou
    Member

    Ugh. Yes, looks like it was moved to Tools/build/stable_abi.py in python/cpython#97963

    There might be more:

    $ git grep Tools/scripts
    developer-workflow/c-api.rst:381:     ./python ./Tools/scripts/stable_abi.py --generate-all ./Misc/stable_abi.toml
    developer-workflow/c-api.rst:388:    ./python ./Tools/scripts/stable_abi.py --all ./Misc/stable_abi.toml
    internals/interpreter.rst:49:Some code objects are pre-loaded into the interpreter using ``Tools/scripts/deepfreeze.py``, which writes ``Python/deepfreeze/deepfreeze.c``.
    testing/run-write-tests.rst:94:You can also execute the ``Tools/scripts/run_tests.py`` script as  found in a
    
  2. encukou commented on May 30, 2023

    @encukou
    Member

    False alarm: internals/interpreter.rst is 3.11-specific, and Tools/scripts/run_tests.py still exists.

    #1103 should fix this.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions