-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
bpo-43103: Add configure --without-static-libpython #24418
Conversation
I tested 4 cases. CFLAGS="-O0" is just to build Python faster. (1) disable shared without static
Output:
=> target/lib/libpython3.10.a is still installed. Should it be not installed? (2) disable shared with static
Output:
(3) enable shared with static
Output:
(4) enable shared without static
Output:
=> target/lib/libpython3.10.a is not installed, as expected. |
Update: I fixed the Makefile to not install libpython3.10.a in this case. |
This failure is unrelated to my PR: "1 test failed: test_asyncio". (The Windows build is not affected by my PR.) |
By default, Python no longer builds ``libpythonMAJOR.MINOR.a`` static library | ||
and no longer installs it and ``python.o``. These files are only useful to | ||
build a static Python executable which is an uncommon use case. Add configure | ||
``--without-static-python`` option to build and install these files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this read --with-static-python
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, the NEWS entry was outdated. I wrote the PR and the NEWS entry. Is it better now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if static install is enabled by default now, then yes. thanks!
edit: I was slightly confused by the default change.. ignore my other comments.
Doc/whatsnew/3.10.rst
Outdated
@@ -797,6 +797,12 @@ Build Changes | |||
|
|||
(Contributed by Victor Stinner in :issue:`42856`.) | |||
|
|||
* Add configure ``--without-static-libpython`` option to not build | |||
``libpythonMAJOR.MINOR.a`` static library and not install ``python.o`` object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``libpythonMAJOR.MINOR.a`` static library and not install ``python.o`` object | |
``libpythonMAJOR.MINOR.a`` static library and not install the ``python.o`` object |
Misc/NEWS.d/next/Build/2021-02-02-16-26-44.bpo-43103.VWeyP_.rst
Outdated
Show resolved
Hide resolved
Add a new configure --without-static-libpython option to not build the libpythonMAJOR.MINOR.a static library and not install the python.o object file. Fix smelly.py and stable_abi.py tools when libpython3.10.a is missing.
@pablogsal: Thanks, I took all your remarks in account. Would you mind to review the updated PR? |
Yup, will re-review today |
🤖 New build scheduled with the buildbot fleet by @pablogsal for commit e1268bd 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
This issue is known and unrelated to my PR: https://bugs.python.org/issue43233 |
Oh, this failure is really strange.
The classic test_asyncio bug:
|
Add a new configure --without-static-libpython option to not build the libpythonMAJOR.MINOR.a static library and not install the python.o object file. Fix smelly.py and stable_abi.py tools when libpython3.10.a is missing.
Hi! I don't suppose this would be eligible for a backport to Python 3.9? If so, would someone mind adding the |
This is a new feature. We don't backport new features to stable branches sadly. https://devguide.python.org/#status-of-python-branches |
Ah ok thank you. Since this was build related, I thought there might be some wiggle room. |
Add configure --without-static-libpython option to not build
libpythonMAJOR.MINOR.a static library and not install python.o object
file.
Fix smelly.py and stable_abi.py tools when libpython3.10.a is
missing.
https://bugs.python.org/issue43103