Commit Graph

7 Commits

Author SHA1 Message Date
jyn
1cac5fa5f9 Look for python3 first on MacOS, not py
`py` is not installed by default *and* trying to run it results in a
popup asking if you want to install it. `python3` is installed by
default.

This hopefully should not be too disruptive to people on Windows, since
they should be going through `x.ps1` instead anyway. Just in case, I've
added a check for Cygwin and Msys (i'm not sure how else you'd get a
bash shell on windows).
2025-02-13 10:24:54 -05:00
ismailarilik
e0b98c739a fix(x): fix a regex used to find python executable 2024-11-06 16:40:02 +03:00
onur-ozkan
e0fe1d6008 Make x capable of resolving symlinks
When bootstrapping from outside of the rust source,
instead of calling 'x' from the absolute path
(like /home/user/rust/x), we should be able to link 'x'
from the rust source to binary paths so it can be used easily.
Before this change, 'x' was not capable of finding 'x.py' when
called from the linked file.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-14 17:53:33 +03:00
MaxHearnden
ea026f93d6
quote argument to sh -n
This prevents glob expansion (*.py) and field splitting
2023-09-25 20:22:20 +01:00
ozkanonur
eea6202c24 check bootstrap scripts syntax
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-05-03 20:32:39 +03:00
Albert Larsan
c83ddaef94
Add better python discovery
`x.ps1` and `x` will now search for python executables like `python3.9`
and `python3.10.exe`
2022-10-31 08:33:24 +01:00
Josh Stone
de8dedb0a5 Use an extensionless x script for non-Windows 2022-08-12 15:39:26 -07:00