Skip to content

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.
encukou added a commit to encukou/cpython that referenced this pull request Nov 11, 2025
encukou added a commit to encukou/cpython that referenced this pull request Nov 11, 2025
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