Skip to content

bpo-42212: smelly.py also checks the dynamic library #23423

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

Merged
merged 3 commits into from
Nov 24, 2020
Merged

bpo-42212: smelly.py also checks the dynamic library #23423

merged 3 commits into from
Nov 24, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 20, 2020

The smelly.py script now also checks the Python dynamic library, not
only the Python static library. Make also the script more verbose:
explain what it does.

https://bugs.python.org/issue42212

@vstinner
Copy link
Member Author

I rebase my PR on top of d20b7ed to get the updated GHA action.

Tests / Check if generated files are up to date (pull_request)

https://github.com/python/cpython/pull/23423/checks?check_run_id=1431368524

/python Tools/scripts/smelly.py
Check that libpython3.10d.a only exports symbols starting with Py or _Py
+ nm -p libpython3.10d.a
Ignored symbol types: b, d, r, t

OK: no smelly symbol found

The smelly.py script now also checks the Python dynamic library and
extension modules, not only the Python static library. Make also the
script more verbose: explain what it does.

The GitHub Action job now builds Python with the libpython dynamic
library.
@vstinner
Copy link
Member Author

Hum, make smelly fails on Ubuntu (" Tests / Check if generated files are up to date" job):

Smelly symbol: _fini (type: T)
Smelly symbol: _init (type: T)

ERROR: Found 2 smelly symbols!

@vstinner vstinner merged commit ac7d016 into python:master Nov 24, 2020
@vstinner vstinner deleted the smelly branch November 24, 2020 12:38
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
The smelly.py script now also checks the Python dynamic library and
extension modules, not only the Python static library. Make also the
script more verbose: explain what it does.

The GitHub Action job now builds Python with the libpython dynamic
library.
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