Skip to content

bpo-45548: Some test modules must be built as shared libs (GH-29268) #29268

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 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 [email protected]

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 <[email protected]>
@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
@tiran tiran deleted the bpo-45548-4 branch October 29, 2021 15:49
@@ -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

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.

6 participants