Fix python3.0.x binary not found #6
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
Python3 before the 3.1 release creates a binary name
python3.0instead of the more commonpython3which every other version uses. I know with 3.0.x being EOL for more than 16 years this probably won't be a common occurrence. But I'm currently working on a archiving project that requires some trulyoldhistoric versions and this tool really helped building those CPython versions from source (thanks for that 🎉).Here is a screenshot of the output from a 3.0.1 build and the binaries produced (please ignore the empty block in the middle I did the
cdcalls with a lot of intermittent steps and so removed it for readability):Considerations
How I build it
I'm certain you already have well working developing setup but I fell into some pitfalls (like installing python2), so here is the docker file I used for completeness. It fails without before this PR and works with the changes.
Docker setup
On my arm based macOS host machine I also had to build it with the x86 compatibility mode:
docker build --platform linux/amd64 -t every-python .