Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update location of the stable_abi.py script#1103

Merged
encukou merged 1 commit into
python:mainpython/devguide:mainfrom
encukou:sa-locencukou/devguide:sa-locCopy head branch name to clipboard
May 30, 2023
Merged

Update location of the stable_abi.py script#1103
encukou merged 1 commit into
python:mainpython/devguide:mainfrom
encukou:sa-locencukou/devguide:sa-locCopy head branch name to clipboard

Conversation

@encukou

@encukou encukou commented May 30, 2023

Copy link
Copy Markdown
Member

Fixes: #1102


📚 Documentation preview 📚: https://cpython-devguide--1103.org.readthedocs.build/

.. code-block:: shell

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one still fails on my machine with a fresh build of 3.12 FYI:

> python ./Tools/build/stable_abi.py --all ./Misc/stable_abi.toml
Running Debug|x64 interpreter...
Traceback (most recent call last):
  File "C:\Users\alexw\coding\cpython\Tools\build\stable_abi.py", line 757, in <module>
    main()
  File "C:\Users\alexw\coding\cpython\Tools\build\stable_abi.py", line 723, in main
    results['unixy_check'] = do_unixy_check(manifest, args)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\alexw\coding\cpython\Tools\build\stable_abi.py", line 394, in do_unixy_check
    present_macros = gcc_get_limited_api_macros(['Include/Python.h'])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\alexw\coding\cpython\Tools\build\stable_abi.py", line 526, in gcc_get_limited_api_macros
    sysconfig.get_config_var("CC").split()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

But at least the instructions now point to scripts that actually exist 😆

@encukou

encukou commented May 30, 2023

Copy link
Copy Markdown
Member Author

Whoa! I've meant to exclude that on Windows, but apparently I forgot!

(un)fortunately there currently aren't any extra checks to run on Windows, so as a workaround, instead of --all you can:

  • use --generate-all
  • check that git diff is empty

@encukou

encukou commented May 30, 2023

Copy link
Copy Markdown
Member Author

Issue: python/cpython#105091

@encukou encukou merged commit 940cc97 into python:main May 30, 2023
@encukou encukou deleted the sa-loc branch May 30, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.