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

Packages that fail looking for /usr/bin/python(2) #944

Open
15 of 20 tasks
nieder opened this issue Jan 15, 2023 · 1 comment
Open
15 of 20 tasks

Packages that fail looking for /usr/bin/python(2) #944

nieder opened this issue Jan 15, 2023 · 1 comment
Labels

Comments

@nieder
Copy link
Member

nieder commented Jan 15, 2023

On 13.0 (and 12 since 12.3) /usr/bin/python no longer exists. Only /usr/bin/python3 is provided by Xcode (or CLT). This is a list of packages that are reported to fail looking for /usr/bin/python(2) during configure or some other part of the build (items struck through were false reports):

- [ ] a2ps @wgscott

@nieder nieder added the bug label Jan 15, 2023
@nieder
Copy link
Member Author

nieder commented Jan 15, 2023

These are possible fixes to packages so that they can find a working python (there are other solutions):

if [ -x /usr/bin/python ]; then
	export PYTHON=/usr/bin/python
else
	export PYTHON=/usr/bin/python3
fi
[ -x /usr/bin/python ] || pyversion=3
PYTHON=/usr/bin/python$pyversion
if [ -x /usr/bin/python ]; then
	./configure.py <FLAGS, ETC>
else
	/usr/bin/python3 ./configure.py <FLAGS, ETC>
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant