beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From al...@apache.org
Subject [beam] branch master updated: Makes SDK stager attempt to stage a linux wheel corresponding to Python interpreter version.
Date Sat, 16 Feb 2019 00:32:51 GMT
This is an automated email from the ASF dual-hosted git repository.

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new e415f2f  Makes SDK stager attempt to stage a linux wheel corresponding to Python
interpreter version.
     new 11a977b  Merge pull request #7860 from tvalentyn/stage_py3_wheels
e415f2f is described below

commit e415f2f93143b57b79730ff798011ea9b7ac081c
Author: Valentyn Tymofieiev <valentyn@google.com>
AuthorDate: Fri Feb 15 15:08:25 2019 -0800

    Makes SDK stager attempt to stage a linux wheel corresponding to Python interpreter version.
---
 sdks/python/apache_beam/runners/portability/stager.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/runners/portability/stager.py b/sdks/python/apache_beam/runners/portability/stager.py
index d4fdfea..4144014 100644
--- a/sdks/python/apache_beam/runners/portability/stager.py
+++ b/sdks/python/apache_beam/runners/portability/stager.py
@@ -489,7 +489,13 @@ class Stager(object):
       try:
         # Stage binary distribution of the SDK, for now on a best-effort basis.
         sdk_local_file = Stager._download_pypi_sdk_package(
-            temp_dir, fetch_binary=True)
+            temp_dir, fetch_binary=True,
+            language_version_tag='%d%d' % (sys.version_info[0],
+                                           sys.version_info[1]),
+            abi_tag='cp%d%d%s' % (
+                sys.version_info[0],
+                sys.version_info[1],
+                'mu' if sys.version_info[0] < 3 else 'm'))
         sdk_binary_staged_name = Stager.\
             _desired_sdk_filename_in_staging_location(sdk_local_file)
         staged_path = FileSystems.join(staging_location, sdk_binary_staged_name)


Mime
View raw message