aboutsummaryrefslogtreecommitdiffstats
path: root/mach
Commit message (Collapse)AuthorAgeFilesLines
* Fix mach argument quoting on NixOS (#35573)Delan Azabani2025-02-211-0/+8
| | | | | | | This patch makes mach shell-quote its arguments when rerunning itself with `nix-shell`, so that spaces and other special characters are handled correctly. Signed-off-by: Delan Azabani <dazabani@igalia.com>
* mach: adopt `uv` and avoid system python (#34632)Mukilan Thiyagarajan2024-12-161-27/+25
| | | | | | | | | | | | | | | | 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>
* Revert "mach: switch to `uv` for managing python venv (#34504)" (#34548)Mukilan Thiyagarajan2024-12-101-3/+4
| | | | | This reverts commit 4103421ba5dc401817128661d759bb18b0aec8f1. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* mach: switch to `uv` for managing python venv (#34504)Mukilan Thiyagarajan2024-12-091-4/+3
| | | | | | | | | | | | | This patch switches servo to use `uv` for both installing a pinned Python version as well as installing the dependency packages using `uv`'s pip compatible interface. It 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 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* tweak mach files a little bit (#34485)Peter Mikola2024-12-061-7/+1
| | | Signed-off-by: Peter MIKOLA <mikopet@mikopet.dev>
* Check maximum Python version in mach (#34490)Michael Mc Donnell2024-12-051-3/+7
| | | | | | | | | | | | | | | Mach is currently failing bootstrap and building if the Python version is greater than 3.12. This is because wpt does not support 3.13 yet. This causes confusion for people running recent distros that ship 3.13 by default. I changed the logic so that mach checks both the minimum and the maximum supported versions of Python instead of just checking the minimum. It will now also tell you which maximum version is supported. I also updated the README.md to specify the supported Python versions so that people don't accidentally install the wrong version. Signed-off-by: Michael Mc Donnell <michael@mcdonnell.dk>
* Remove etc/shell.nix in favour of shell.nix (#34336)Delan Azabani2024-11-221-2/+2
| | | Signed-off-by: Delan Azabani <dazabani@igalia.com>
* Make Android build optional on Nix (#31231)Smitty2024-02-021-1/+2
| | | | | | | | | | | | | | | * Make Android build optional on Nix I want to build Servo without also installing the entire Android SDK. This makes it so Android support is only built if `buildAndroid` is true. Signed-off-by: syvb <me@iter.ca> * Add Android support to nix-shell if SERVO_ANDROID_BUILD set --------- Signed-off-by: syvb <me@iter.ca>
* mach: Error out sooner with Python < 3.10 (#31225)Martin Robinson2024-01-301-2/+2
| | | | We upgraded our Python dependency to 3.10, but neglected to update mach. This change makes sure we error out sooner, rather than later.
* Allow building with Nix on Linux distros other than NixOS (#31001)Delan Azabani2024-01-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * remove NixOS check from mach wrapper * pin nixpkgs to fix jemalloc-sys + mozangle build scripts * add stdenv.cc.cc to LD_LIBRARY_PATH to fix webrender build.rs * add all buildInputs to LD_LIBRARY_PATH to fix ldd servo * add glib + zlib to buildInputs to fix ldd servo * working! patchelf --remove-rpath --set-interpreter * undo changes that were ultimately unhelpful * make compiled programs independent of Nix * avoid installing patchelf’d toolchains in ~/.rustup * remove another spurious change * fix rustup pollution * only enable on other distros when MACH_USE_NIX is set
* Remove `__future__` imports that are no longer necessary (#30661)Martin Robinson2023-11-021-2/+0
| | | These are no longer necessary as we always use Python 3.
* mach: fix exit status on NixOS (#30079)Delan Azabani2023-08-081-1/+2
|
* mach: cleanup after dropping Python 2 supportDavid Heidelberg2021-07-191-74/+1
| | | | Signed-off-by: David Heidelberg <david@ixit.cz>
* extend message about nixOS shellMaciej Krüger2021-06-211-0/+1
|
* add NixOS support to mach and automatically re-launch mach in nix-shellMaciej Krüger2021-06-041-1/+11
|
* Port some code to Python3Vincent Ricard2021-02-181-3/+3
|
* Don't run multiprocessing hack on Python 3Kagami Sascha Rosylight2020-06-201-1/+7
|
* Allow to run mach with Python3 (>=3.5)marmeladema2019-12-091-2/+2
|
* Check for python's version in machBastien Orivel2019-06-031-0/+7
| | | | | On archlinux, python 2 isn't installed by default and it leads to some really confusing error messages when running mach
* Update MPL license to https (part 1)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Allow bootstrap to be run before anything else is installedManish Goregaokar2018-09-111-2/+5
|
* Revert "build(mach): locate vs via vswhere on win32"Josh Matthews2018-08-201-97/+1
| | | | This reverts commit c20efd5e9a1999d8253be3063113ab3c3a9ee77e.
* build(mach): locate vs via vswhere on win32OJ Kwon2018-06-201-1/+97
|
* Disable bytecode generation in machRavi Shankar2017-04-101-0/+1
|
* Fix test-wpt and test-css for Windows.Jack Moffitt2016-11-161-1/+68
| | | | | | In addition to minor changes for Windows, this forces Windows Python to be used for all Windows builds (instead of using Windows Python only for pc-windows-msvc builds).
* Minor cleanup of mach and bootstrap scriptRavi Shankar2016-09-011-2/+1
|
* Native MSVC windows build, convert to cmakeVladimir Vukicevic2016-08-171-1/+2
|
* Redirect stderr to /dev/nullPer Lundberg2016-05-251-1/+1
| | | | | | | | | | | We already redirect stdout, but the problem is that (at least on Windows/MSYS2), the `which` command tends to output things to stderr when failing: ``` $ ./mach build -d which: no python2.7 in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/c/Program Files/Java/jdk1.8.0_66/bin:/c/Python27:/c/Python27/Scripts) ``` This PR silences this noise.
* Minor style tweakAidan Hobson Sayers2015-09-141-1/+1
|
* Cargoify servoJack Moffitt2014-09-081-0/+25