Skip to content

Include/exports.h: Just check for the visibility attribute. #138036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tfogal
Copy link

@tfogal tfogal commented Aug 22, 2025

The comment alludes to releases that are no longer relevant. Ubuntu 20.04 LTS is no longer supported, but even it has gcc 9. CentOS is in a much different state, but even the spiritual successor rockylinux 8.9 (out of its support window as well) has gcc 8.

In short the compilers that do not support the has_attribute directive are no longer supported.

Build tested on Ubuntu 24.04 and rockylinux 8.9.

Reference:
https://ubuntu.com/about/release-cycle
https://wiki.rockylinux.org/rocky/version/#__tabbed_1_1

The comment alludes to releases that are no longer relevant. Ubuntu
20.04 LTS is no longer supported, but even it has gcc 9. CentOS is
in a much different state, but even the spiritual successor
rockylinux 8.9 (out of its support window as well) has gcc 8.

In short the compilers which do not support the has_attribute
directive are no longer themselves supported.
@python-cla-bot
Copy link

python-cla-bot bot commented Aug 22, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

This comment was marked as resolved.

@StanFromIreland StanFromIreland changed the title exports: Just check for the visibility attribute. Include/exports.h: Just check for the visibility attribute. Aug 22, 2025
@StanFromIreland StanFromIreland added skip news skip issue type-refactor Code refactoring (with no changes in behavior) labels Aug 22, 2025
@picnixz
Copy link
Member

picnixz commented Aug 22, 2025

We have a bunch of other places where we test for GNU >= 4 and so I don't think only one place is needed to be changed. I would prefer keeping the code as is or update the comment. cc @vstinner

@bedevere-app
Copy link

bedevere-app bot commented Aug 22, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz picnixz added the pending The issue will be closed if no feedback is provided label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review pending The issue will be closed if no feedback is provided type-refactor Code refactoring (with no changes in behavior)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants