From 1cdefe879a60209645bcf139b03aec1f817d785a Mon Sep 17 00:00:00 2001 From: Derek Homeier Date: Thu, 26 Jan 2023 01:33:30 +0100 Subject: [PATCH] Let pykg-config detect python3 --- .../stable/main/finkinfo/devel/pykg-config.info | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/10.9-libcxx/stable/main/finkinfo/devel/pykg-config.info b/10.9-libcxx/stable/main/finkinfo/devel/pykg-config.info index aaaa5e4507e..76528b7ac85 100644 --- a/10.9-libcxx/stable/main/finkinfo/devel/pykg-config.info +++ b/10.9-libcxx/stable/main/finkinfo/devel/pykg-config.info @@ -1,6 +1,6 @@ Package: pykg-config Version: 1.3.0 -Revision: 3 +Revision: 4 Source: https://files.pythonhosted.org/packages/source/p/%n/%n-%v.tar.gz Source-Checksum: SHA256(9c646103c4390bbc5070ab7075a271970333ddad54dc245df5628ed8e3dc3624) BuildDepends: pkgconfig-common (= 3-1) @@ -12,10 +12,13 @@ PatchScript: << CompileScript: << #!/bin/sh -evx pc_path=`cat %p/share/pkgconfig-common/pc-path` - /usr/bin/python setup.py build_py --with-pc-path="$pc_path" build_scripts + [ -x /usr/bin/python ] || pyversion=3 + /usr/bin/python$pyversion setup.py build_py --with-pc-path="$pc_path" build_scripts << InstallScript: << - /usr/bin/python setup.py install --prefix=%p --install-lib=%p/lib/%n/lib --root=%d --skip-build +#!/bin/sh -ev + [ -x /usr/bin/python ] || pyversion=3 + /usr/bin/python$pyversion setup.py install --prefix=%p --install-lib=%p/lib/%n/lib --root=%d --skip-build mv %i/bin/pykg-config.py %i/bin/pykg-config.real install -m 755 %p/share/pkgconfig-common/pc-resort %i/bin/pykg-config @@ -25,7 +28,7 @@ InstallScript: << << DocFiles: LICENSE.txt README.txt DescPackaging: << - Uses system-python for maximum portability and availability at + Uses system-python[3] for maximum portability and availability at lowest levels of dep trees. And therefore install in private libdir to avoid pythonversion dependency.