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

pykg-config build for 12.0/13.0 #960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

pykg-config build for 12.0/13.0 #960

wants to merge 1 commit into from

Conversation

dhomeier
Copy link
Contributor

Compatibility with python3

@dmacks
Copy link
Member

dmacks commented Jan 26, 2023

The existing package installs %p/bin/pykg-config.real that is an executable starting with #!/usr/bin/python. On platforms where we have /usr/bin/python3 instead, does that give python3 in the #! line? That's a .deb variation, so we'd need separate revisions on the different distros.

@dhomeier
Copy link
Contributor Author

On Python3 systems it's

#!/Applications/Xcode.app/Contents/Developer/usr/bin/python3

and I actually thought the two would be pretty much exclusive, but it seems Python 3.8 was already made available in Catalina
https://discuss.python.org/t/right-or-best-way-to-install-python-in-macos-10-15-catalina/6204/2
while 2.7 was only finally pulled with the update to 12.3
https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes#Python
(which I assume already came with 3.9.6 installed).
The way the package is first checking for /usr/bin/python it would now still use 2.7 as long as it's available; would probably make more sense to use python3 throughout at least everywhere 3.9.6 is installed. So should this be split into two packages, dist-restricted to (12.0, 13.0) and the rest, respectively?

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.

2 participants