You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2023/11/03 15:15:38 UTC
(beam) branch release-2.52.0 updated: [YAML] Fix PyPi caching for non-dev beam (#29292)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch release-2.52.0
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/release-2.52.0 by this push:
new e008971bb8b [YAML] Fix PyPi caching for non-dev beam (#29292)
e008971bb8b is described below
commit e008971bb8b512fb39f04ef568c2c8f4951adcd2
Author: Jeff Kinard <35...@users.noreply.github.com>
AuthorDate: Fri Nov 3 11:15:29 2023 -0400
[YAML] Fix PyPi caching for non-dev beam (#29292)
Signed-off-by: Jeffrey Kinard <je...@thekinards.com>
---
sdks/python/apache_beam/yaml/cache_provider_artifacts.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sdks/python/apache_beam/yaml/cache_provider_artifacts.py b/sdks/python/apache_beam/yaml/cache_provider_artifacts.py
index 6c96dd3b0fd..5efc6d04355 100644
--- a/sdks/python/apache_beam/yaml/cache_provider_artifacts.py
+++ b/sdks/python/apache_beam/yaml/cache_provider_artifacts.py
@@ -16,6 +16,7 @@
#
import logging
+import sys
import time
from apache_beam.version import __version__ as beam_version
@@ -37,7 +38,8 @@ def cache_provider_artifacts():
if '.dev' not in beam_version:
# Also cache a base python venv for fast cloning.
t = time.time()
- artifacts = yaml_provider.PypiExpansionService._create_venv_to_clone()
+ artifacts = yaml_provider.PypiExpansionService._create_venv_to_clone(
+ sys.executable)
logging.info('Cached %s in %0.03f seconds.', artifacts, time.time() - t)