try with patch version if not #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "z4c/compile-python:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cf https://discuss.afpy.org/t/venv-direnv-prompt-bash-et-emacs-et-lsp/1845/4
2ec4c849a7to278ed6cb13@ -16,2 +22,3 @@wget -qO- "$URL/$PY_VERSION/Python-$PY_VERSION$BETA.tgz" | tar -xzf - || (echo "Version not found, check on $URL."echo "Version '$PY_VERSION' not found, check on $URL."echo "Ttrying something else." && compile-python `_get_last_patch $PY_VERSION`Is this line to "autocorrect" from
3.12to3.12.0? (Or from3.11to3.11.7?(Beware of the double t)
yep. that's it.
@ -2,1 +2,4 @@_get_last_patch(){curl -s https://www.python.org/ftp/python/ | grep -o ">[0-9.]\+/<" | sed "s/^>//;s|/<$||"| grep ^$1 | sort --version-sort | tail -n 1I'm a bit sad it does not work with alpha releases.
compile-python 3.13may trycompile-python 3.13.0but it does not exists, only the alphas exists.Oh does it make this implem run in an infinite loop? :D
I dislike adding complexity.
But to be honest, if your "get last patch" function could grab betas versions, it would greatly simplify
compile-pythons, at least its maintenance, as it would "auto-bump", which is a nice feature...You right @mdk
Done.
9ce740cf73to7bfcdc9a0a7bfcdc9a0ato5036332666Hum, there's un problème,
compile-python 3.11.0will compile3.11.0rc2instead of3.11.0.I can propose:
Also please simplify
compile-pythonsto:as
compile-pythoncorrectly chooses the right version.Did you know you can avoid backslashes at end of line by putting the
|instead? It's unambiguous to bash, if the line ends with a|it's not the end of it.A bit of sed-fu for the fun, for the
_get_last_tagfunction, feel free to use it or not:J'ai encore joué avec ta PR, j'ai fini par faire quelque chose qui me convient, j'ai fini aussi les changements dans
compile-pythonspour ne plus avoir à maintenir ça à la main, et j'ai tenté de documenter un poil.Merci beaucoup pour la PR :)
Pull request closed