Visitar URL original
bpo-45548: Some test modules must be built as shared libs (GH-29268) by tiran · Pull Request #29268 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223140550/https://github.com/python/cpython/pull/29268
Skip to content
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-45548: Some test modules must be built as shared libs (GH-29268) #29268

Merged
merged 1 commit into from Oct 29, 2021

Conversation

tiran
Copy link
Member

@tiran tiran commented Oct 28, 2021 •

Some test cases don't work when test modules are static extensions.

Add dependency on Modules/config.c to trigger a rebuild whenever a
module build type is changed.

makesetup puts shared extensions into Modules/ directory. Create
symlinks from pybuilddir so the extensions can be imported.

Note: It is not possible to use the content of pybuilddir.txt as a build
target. Makefile evaluates target variables in the first pass. The
pybuilddir.txt file does not exist at that point.

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue45548

Some test cases don't work when test modules are static extensions.

Add dependency on Modules/config.c to trigger a rebuild whenever a
module build type is changed.

``makesetup`` puts shared extensions into ``Modules/`` directory. Create
symlinks from pybuilddir so the extensions can be imported.

Note: It is not possible to use the content of pybuilddir.txt as a build
target. Makefile evaluates target variables in the first pass. The
pybuilddir.txt file does not exist at that point.

Signed-off-by: Christian Heimes <christian@python.org>
Makefile.pre.in Show resolved Hide resolved
@tiran tiran changed the title bpo-45548: Some test modules must be built as shared libs bpo-45548: Some test modules must be built as shared libs (GH-29268) Oct 29, 2021
@tiran tiran merged commit f0150ac into python:main Oct 29, 2021
12 checks passed
@tiran tiran deleted the bpo-45548-4 branch Oct 29, 2021
@@ -507,6 +507,13 @@ Build Changes
except empty tuple singleton.
(Contributed by Christian Heimes in :issue:`45522`)

* ``Modules/Setup`` and ``Modules/makesetup`` have been improved and tied up.
Copy link
Member

@zware zware Oct 29, 2021

Choose a reason for hiding this comment

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

Suggested change
* ``Modules/Setup`` and ``Modules/makesetup`` have been improved and tied up.
* ``Modules/Setup`` and ``Modules/makesetup`` have been improved and tidied up.

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.

None yet

6 participants