fix: drop PYTHONSAFEPATH (#2429)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -361,7 +361,6 @@ def build_in_container(
|
||||
virtualenv_env = env.copy()
|
||||
virtualenv_env["PATH"] = f"{venv_dir / 'bin'}:{virtualenv_env['PATH']}"
|
||||
virtualenv_env["VIRTUAL_ENV"] = str(venv_dir)
|
||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||
prev_environment=virtualenv_env
|
||||
)
|
||||
|
||||
@@ -648,9 +648,6 @@ def build(options: Options, tmp_path: Path) -> None:
|
||||
|
||||
virtualenv_env["MACOSX_DEPLOYMENT_TARGET"] = get_test_macosx_deployment_target()
|
||||
|
||||
# see https://github.com/pypa/cibuildwheel/issues/2358 for discussion
|
||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
||||
|
||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||
prev_environment=virtualenv_env
|
||||
)
|
||||
|
||||
@@ -484,8 +484,6 @@ def build(options: Options, tmp_path: Path) -> None:
|
||||
)
|
||||
virtualenv_env["VIRTUAL_ENV"] = str(venv_dir)
|
||||
|
||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
||||
|
||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||
prev_environment=virtualenv_env
|
||||
)
|
||||
|
||||
@@ -553,9 +553,6 @@ def build(options: Options, tmp_path: Path) -> None:
|
||||
pip_version=pip_version,
|
||||
)
|
||||
|
||||
# see https://github.com/pypa/cibuildwheel/issues/2358 for discussion
|
||||
virtualenv_env["PYTHONSAFEPATH"] = "1"
|
||||
|
||||
virtualenv_env = build_options.test_environment.as_dictionary(
|
||||
prev_environment=virtualenv_env
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user