Commit graph

15 commits

Author SHA1 Message Date
Mukilan Thiyagarajan
88a35b3cc9
mach: adopt uv and avoid system python (#34632)
This allows us to use `uv` for:
1. Installing a pinned Python version
2. Installing the dependency packages using `uv`'s pip compatible interface.
4. Bootstrapping `mach` without a Python installion on the host, using `uv
   run`

This change also introduces a new 'composite' GitHub action to setup
python in the different CI workflows. There is no support for externally
managed python installations and virtual environments. These could be
added in the future.

Fixes #34095, #34547

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-12-16 09:20:37 +00:00
Peter Mikola
4ddbdc61a3
tweak mach files a little bit (#34485)
Signed-off-by: Peter MIKOLA <mikopet@mikopet.dev>
2024-12-06 15:57:30 +00:00
Dominic Cooney
aa3359dc9e Make mach.bat request Python 3
The mach Python script no longer supports Python 2, so don't use
Python 2.

Fixes #28379

Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
2021-05-22 18:27:10 +09:00
MeFisto94
215177d791 Launch vcvarsall.bat for the recognized VS Installation Directory from python instead of making mach.bat try that on hardcoded paths. 2019-12-23 00:31:07 +01:00
TheGoddessInari
903729159e Rework mach.bat to support VS2019 and user-supplied environments.
As a bonus, use setlocal to avoid environment pollution.
2019-04-01 11:15:22 -04:00
TheGoddessInari
e1eb36050e Default mach.bat to using py -2.
Servo already assumes the user has Python, this is the primary
way to make sure that Python 2 is preferred, and you should
get a sensible error message if you have python 3 but not 2.

But first, check that py.exe exists because if a system has only
Python 2.x only, it won't have it. If it doesn't, then try python.exe.
2019-04-01 11:15:22 -04:00
Simon Sapin
1bab9fb64f mach.bat: exit with an error code 2018-10-08 16:44:21 +02:00
Josh Matthews
64cbf02084 Revert "build(mach): locate vs via vswhere on win32"
This reverts commit c20efd5e9a.
2018-08-20 12:58:59 -04:00
OJ Kwon
c20efd5e9a
build(mach): locate vs via vswhere on win32 2018-06-20 11:30:58 -07:00
Andrés Barreiro
1f2b5d684f Get back to working dir after vcvarsall.bat
When using cmd.exe directly, vcvarsall.bat changes the working directory.
To prevent this, pushd and popd could be used.
2017-11-21 19:17:29 +01:00
tigercosmos
26dc7ac973 update just VS buildtool for Windows build 2017-09-09 23:40:20 +08:00
UK992
9b35fd9472 Add support for Visual Studio 2017 2017-04-11 23:31:22 +02:00
UK992
a5ce6304b1 Fix hardcoded path to link.exe 2017-02-03 13:33:37 +01:00
UK992
516676aa5f Windows MSVC: Define vcvars in mach.bat 2016-08-22 18:02:49 +02:00
Vladimir Vukicevic
5bbec7469d Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00