[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v3 12/20] scripts/make-release: download meson==0.61.5 .whl
From: |
John Snow |
Subject: |
[RFC PATCH v3 12/20] scripts/make-release: download meson==0.61.5 .whl |
Date: |
Mon, 24 Apr 2023 16:02:40 -0400 |
In preference to vendoring meson source, vendor a built
distributable. This has two benefits:
(1) We can get rid of a git submodule,
(2) Installing built meson into a venv doesn't require any extra dependencies.
RFC:
The alternative approach is to just check in the .whl file into the git
tree directly, and have it available for both git and tarball
installations. That approach slightly changes the necessity of some
subsequent patches, but otherwise either way will work.
Owing to how "mkvenv ensure" will prefer vendored files prior to
connecting to PyPI, checking in a vendored meson file in this manner
means we will generally never use PyPI to install meson ever.
("Vote now on your phones.")
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/make-release | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/scripts/make-release b/scripts/make-release
index 44a9d86a04..a59bad11f9 100755
--- a/scripts/make-release
+++ b/scripts/make-release
@@ -41,6 +41,17 @@ git submodule update --init --single-branch
BaseTools/Source/C/BrotliCompress/brotli \
CryptoPkg/Library/OpensslLib/openssl \
MdeModulePkg/Library/BrotliCustomDecompressLib/brotli)
+
+# Handle vendoring Python dependencies:
+mkdir python/wheels
+pushd python/wheels
+pip download meson==0.61.5
+sha256sum -c <<EOF
+58c2ddb5f885da0e929f15d89f38d8a7d97f981f56815bcba008414f8511f59a
meson-0.61.5-py3-none-any.whl
+EOF
popd
+
+popd
+
tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination}
rm -rf ${destination}
--
2.39.2
- [RFC PATCH v3 08/20] mkvenv: add ensure subcommand, (continued)
- [RFC PATCH v3 08/20] mkvenv: add ensure subcommand, John Snow, 2023/04/24
- [RFC PATCH v3 07/20] mkvenv: add nested venv workaround, John Snow, 2023/04/24
- [RFC PATCH v3 10/20] tests/vm: Configure netbsd to use Python 3.10, John Snow, 2023/04/24
- [RFC PATCH v3 09/20] tests/docker: add python3-venv dependency, John Snow, 2023/04/24
- [RFC PATCH v3 11/20] tests/vm: add py310-expat to NetBSD, John Snow, 2023/04/24
- [RFC PATCH v3 13/20] configure: create a python venv unconditionally, John Snow, 2023/04/24
- [RFC PATCH v3 15/20] configure: add --enable-pypi and --disable-pypi, John Snow, 2023/04/24
- [RFC PATCH v3 12/20] scripts/make-release: download meson==0.61.5 .whl,
John Snow <=
- [RFC PATCH v3 14/20] configure: use 'mkvenv ensure meson' to bootstrap meson, John Snow, 2023/04/24
- [RFC PATCH v3 01/20] python: update pylint configuration, John Snow, 2023/04/24
- [RFC PATCH v3 16/20] tests: Use configure-provided pyvenv for tests, John Snow, 2023/04/24
- [RFC PATCH v3 17/20] configure: move --enable-docs and --disable-docs back to configure, John Snow, 2023/04/24
- [RFC PATCH v3 19/20] configure: use --diagnose option with meson ensure, John Snow, 2023/04/24
- [RFC PATCH v3 18/20] mkvenv: add diagnose() method for ensure() failures, John Snow, 2023/04/24