[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-19 Thread Christian Heimes
Christian Heimes added the comment: New changeset 7e44dc0ba768451f287a541cd1c85f7d87a41561 by Christian Heimes in branch 'main': bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616) https://github.com/python/cpython/commit/7e44dc0ba768451f287a541cd1c85f7d87a41561

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-19 Thread Christian Heimes
Christian Heimes added the comment: Erlend implemented pkg-config for sqlite3 in bpo-45774. Thanks to his tireless effort we now have a blue print how to port other checks to optional pkg-config lookup. -- superseder: -> Detect SQLite in configure.ac

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-18 Thread Christian Heimes
Christian Heimes added the comment: New changeset e4bb22fabbea72776b377733047e0f32e0388059 by Christian Heimes in branch 'main': bpo-45573: Add Modules/Setup.stdlib with conditional modules (GH-29615) https://github.com/python/cpython/commit/e4bb22fabbea72776b377733047e0f32e0388059

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-18 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27852 pull_request: https://github.com/python/cpython/pull/29616 ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-18 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27851 pull_request: https://github.com/python/cpython/pull/29615 ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-18 Thread Christian Heimes
Christian Heimes added the comment: New changeset 5275e59c0c1b26226608e6c7c2548c26192d6575 by Christian Heimes in branch 'main': bpo-45573: check for ossaudiodev in configure (GH-29614) https://github.com/python/cpython/commit/5275e59c0c1b26226608e6c7c2548c26192d6575 --

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-18 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27850 pull_request: https://github.com/python/cpython/pull/29614 ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-18 Thread Christian Heimes
Christian Heimes added the comment: New changeset 25ecc040d007a55e4b5c30fa739054b52c1aacac by Christian Heimes in branch 'main': bpo-45573: Introduce extension module flags in Makefile (GH-29594) https://github.com/python/cpython/commit/25ecc040d007a55e4b5c30fa739054b52c1aacac --

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27837 pull_request: https://github.com/python/cpython/pull/29594 ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-15 Thread Brett Cannon
Brett Cannon added the comment: > Is traditional cross-compiling work still useful these days anyway? Yes for things like WebAssembly where there is no equivalent of an emulated CPU under QEMU. -- ___ Python tracker

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-14 Thread Christian Heimes
Christian Heimes added the comment: New changeset c3997865f24d9491318b401ae8e46d27332aca25 by Christian Heimes in branch 'main': bpo-45573: Use Makefile's dependencies in setup.py (GH-29559) https://github.com/python/cpython/commit/c3997865f24d9491318b401ae8e46d27332aca25 --

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-14 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27807 pull_request: https://github.com/python/cpython/pull/29559 ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-12 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27784 pull_request: https://github.com/python/cpython/pull/29534 ___ Python tracker ___

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: gdbmmodule and dbmmodule need special treatment anyway. macOS has dbm-API build into libc. Linux has either libgdbm_compat, libndbm, or libdb. The --with-dbmliborder makes it even more interesting. Users can override in which order they want to probe for

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Ned Deily
Ned Deily added the comment: SGTM,2 This all sounds great. I think a goal here should be to remove all header and lib file searching from setup.py as that has always been a bug magnet. Perhaps one workaround for those libs that don't (yet) provide .pc files would be for us to supply

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Brett Cannon
Brett Cannon added the comment: SGTM! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Christian Heimes
Christian Heimes added the comment: We can detect majority of our dependencies with pkg-config. The use of pkg-config has some benefits: * Distro's provide the .pc files in their -dev / -devel packages. The presence of a .pc file indicates that all development dependencies are available. *

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: $ find build/lib.linux-x86_64-3.11/ -name '*.so' | sort build/lib.linux-x86_64-3.11/_ctypes.cpython-311-x86_64-linux-gnu.so build/lib.linux-x86_64-3.11/_ctypes_test.cpython-311-x86_64-linux-gnu.so

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: I added some whitespace to Modules/Setup. All lines starting with ``#([a-z_])`` compile cleanly on Fedora 34 with all dependencies available. dbm, tkinter, and sqlite are missing or untested. $ sed -E -i 's/^#([a-z_])/\1/g' Modules/Setup $ make ... The

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27438 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29164 ___ Python tracker

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-10-22 Thread Christian Heimes
New submission from Christian Heimes : pkg-config [1] is a standard tool on Linux and other platforms to detect presence of dependencies as well as to figure out which compiler and linker flags they require. Development packages provide a .pc file, e.g. ncurses provides a ncursesw.pc file.