FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add a section about how to regenerate the ABI file by pablogsal · Pull Request #903 · python/devguide · GitHub

Add a section about how to regenerate the ABI file - #903

Merged
pablogsal merged 2 commits into
python:mainfrom
pablogsal:regen
Jun 22, 2022
Merged

Add a section about how to regenerate the ABI file#903
pablogsal merged 2 commits into
python:mainfrom
pablogsal:regen

Conversation

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>

AlexWaygood left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Some typos :)

Comment thread setup.rst Outdated
Comment thread setup.rst Outdated
Comment thread setup.rst Outdated
Comment thread setup.rst Outdated
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
pablogsal merged commit 3f73e7d into python:main Jun 22, 2022
pablogsal deleted the regen branch June 22, 2022 15:38

Copy link
Copy Markdown
Member Author

Thanks for the review @AlexWaygood :)

Comment thread setup.rst
Comment on lines +505 to +518
.. code-block:: bash
# In the CPython root:
$ docker run -v`pwd`:/src -it ubuntu:20.04 bash
$ cd /src
# Install dependencies to compile CPython
$ .github/workflows/posix-deps-apt.sh
# Install dependencies to run the ABI regeneration
$ apt-get install -yq abigail-tools python3
# Ensure CPython is built with all the debugging information
$ export CFLAGS="-g3 -O0"
# Build Python
$ ./configure --enable-shared && make
# Regenerate the ABI file
$ make regen-abidump

encukou Jun 22, 2022
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

That's a long script. Would you object to adding it to the source, and reducing the instructions to just e.g. docker run -v$(pwd):/src -w/src --rm ubuntu:20.04 bash /src/.github/workflows/regen-abidump.sh?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

No, I think is a good idea. Will prepare a PR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Comment thread setup.rst
with native extensions and other tools that interact with the Python interpreter.
See the documentation about the :ref:`release candidate <rc>` phase.

You can regenerate the ABI file by yourself by invoking the ``regen abidump``

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

regen-abidump, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yup

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Will fix this when I update the code block after we merge python/cpython#94135

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL