@@ -2,6 +2,11 @@ load("//python:py_binary.bzl", "py_binary")
22load ("//python:py_test.bzl" , "py_test" )
33load ("//python/private:bzlmod_enabled.bzl" , "BZLMOD_ENABLED" ) # buildifier: disable=bzl-visibility
44load ("//python/zipapp:py_zipapp_binary.bzl" , "py_zipapp_binary" )
5+ load ("//tests/support:support.bzl" , "NOT_WINDOWS" )
6+
7+ # todo: add windows support. Windows support will be a bit odd.
8+ # It previously worked by having special logic in the exe launcher
9+ # that knew to look for .zip and running that through python
510
611py_binary (
712 name = "venv_bin" ,
@@ -11,12 +16,14 @@ py_binary(
1116 "//python/config_settings:venvs_site_packages" : "yes" ,
1217 },
1318 main = "main.py" ,
19+ target_compatible_with = NOT_WINDOWS ,
1420 deps = ["@dev_pip//absl_py" ],
1521)
1622
1723py_zipapp_binary (
1824 name = "venv_zipapp" ,
1925 binary = ":venv_bin" ,
26+ target_compatible_with = NOT_WINDOWS ,
2027)
2128
2229py_test (
@@ -27,6 +34,7 @@ py_test(
2734 "BZLMOD_ENABLED" : str (int (BZLMOD_ENABLED )),
2835 "TEST_ZIPAPP" : "$(location :venv_zipapp)" ,
2936 },
37+ target_compatible_with = NOT_WINDOWS ,
3038)
3139
3240py_binary (
@@ -37,12 +45,14 @@ py_binary(
3745 "//python/config_settings:venvs_site_packages" : "no" ,
3846 },
3947 main = "main.py" ,
48+ target_compatible_with = NOT_WINDOWS ,
4049 deps = ["@dev_pip//absl_py" ],
4150)
4251
4352py_zipapp_binary (
4453 name = "system_python_zipapp" ,
4554 binary = ":system_python_bin" ,
55+ target_compatible_with = NOT_WINDOWS ,
4656)
4757
4858py_test (
@@ -52,4 +62,5 @@ py_test(
5262 env = {
5363 "TEST_ZIPAPP" : "$(location :system_python_zipapp)" ,
5464 },
65+ target_compatible_with = NOT_WINDOWS ,
5566)
0 commit comments