From 175387d9015ef327a1a4b12dc673df65ae586f57 Mon Sep 17 00:00:00 2001 From: Oliver Bristow Date: Sat, 9 May 2020 14:55:36 +0100 Subject: [PATCH] Make pex_pytest non-zip-safe --- tools/rules/pex/pex_rules.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/rules/pex/pex_rules.bzl b/tools/rules/pex/pex_rules.bzl index 2dbe33347a3..f39fb7d0818 100644 --- a/tools/rules/pex/pex_rules.bzl +++ b/tools/rules/pex/pex_rules.bzl @@ -195,6 +195,8 @@ def _pex_binary_impl(ctx): "--output-file", deploy_pex.path, "--disable-cache", + "--python-shebang", "#!/usr/bin/env python3", + "--no-compile", manifest_file.path, ] #EXTRA_PEX_ARGS# @@ -455,6 +457,7 @@ def pex_pytest( ], entrypoint = "pytest", testonly = True, + zip_safe = False, **kwargs ) _pytest_pex_test(