From 252360eaac5d83c100aba642b16bcb67d81bfe03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 16 Jul 2024 13:51:19 +0200 Subject: [PATCH] Disable (broken) --sysroot on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- gpep517/__main__.py | 2 ++ test/test_main.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gpep517/__main__.py b/gpep517/__main__.py index 616385c..d6b3771 100644 --- a/gpep517/__main__.py +++ b/gpep517/__main__.py @@ -193,6 +193,8 @@ def build_wheel_impl(args, wheel_dir: Path): else disable_zip_compression) if args.sysroot is not None: + if os.name == "nt": + raise RuntimeError("--sysroot is not supported on Windows") sysconfig_ctx = patch_sysconfig(args.sysroot, args.prefix) else: diff --git a/test/test_main.py b/test/test_main.py index 6982087..e350ba9 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -440,6 +440,8 @@ def test_backend_opening_zipfile(tmp_path, capfd, backend, verify_mod_cleanup, == {x.compress_type for x in zipf.infolist()}) +@pytest.mark.skipif(os.name == "nt", + reason="--sysroot not supported on Windows") @pytest.mark.parametrize("prefix", [None, "/usr", "/new_prefix/usr"]) def test_sysroot(tmp_path, capfd, verify_mod_cleanup, distutils_cache_cleanup, prefix):