Skip to content

bpo-45573: Use pkg-config for Modules/Setup - #29164

Closed
tiran wants to merge 6 commits into
python:mainfrom
tiran:configure_pkgconfig
Closed

bpo-45573: Use pkg-config for Modules/Setup#29164
tiran wants to merge 6 commits into
python:mainfrom
tiran:configure_pkgconfig

Conversation

@tiran

@tirantiran commented Oct 22, 2021

Copy link
Copy Markdown
Member

Use pkg-config and a modified version of
PKG_HAVE_DEFINE_WITH_MODULES to detect compiler flags and libraries
for Modules/Setup.

For now CPython does not use any of the new flags in setup.py. We may
expand the use of pkg-config once we are sure that it works properly on
our target platforms.

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

https://bugs.python.org/issue45573

``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>
Use pkg-config and a modified version of
``PKG_HAVE_DEFINE_WITH_MODULES`` to detect compiler flags and libraries
for ``Modules/Setup``.
For now CPython does not use any of the new flags in setup.py. We may
expand the use of pkg-config once we are sure that it works properly on
our target platforms.
Signed-off-by: Christian Heimes <christian@python.org>
@tiran
tiranforce-pushed the configure_pkgconfig branch from 4f5374f to 310c4e3CompareOctober 26, 2021 14:53
@brettcannon

Copy link
Copy Markdown
Member

Once this leaves the draft stage and my review is still desired, please feel free to add the review request back.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@tiran@brettcannon@the-knights-who-say-ni@bedevere-bot