try with patch version if not #1
Loading…
Reference in 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
2ec4c849a7
to278ed6cb13
@ -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.12
to3.12.0
? (Or from3.11
to3.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 1
I'm a bit sad it does not work with alpha releases.
compile-python 3.13
may trycompile-python 3.13.0
but 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.
9ce740cf73
to7bfcdc9a0a
7bfcdc9a0a
to5036332666
Hum, there's un problème,
compile-python 3.11.0
will compile3.11.0rc2
instead of3.11.0
.I can propose:
Also please simplify
compile-pythons
to:as
compile-python
correctly 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_tag
function, 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-pythons
pour ne plus avoir à maintenir ça à la main, et j'ai tenté de documenter un poil.Merci beaucoup pour la PR :)
Pull request closed