[ https://issues.apache.org/jira/browse/BEAM-7909?focusedWorklogId=296668&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-296668 ]
ASF GitHub Bot logged work on BEAM-7909: ---------------------------------------- Author: ASF GitHub Bot Created on: 16/Aug/19 23:45 Start Date: 16/Aug/19 23:45 Worklog Time Spent: 10m Work Description: aaltay commented on pull request #9351: [BEAM-7909] support customized container for Python URL: https://github.com/apache/beam/pull/9351#discussion_r314920513 ########## File path: sdks/python/apache_beam/runners/portability/portable_runner.py ########## @@ -84,16 +84,10 @@ def __init__(self): @staticmethod def default_docker_image(): if 'USER' in os.environ: - if sys.version_info[0] == 2: - version_suffix = '' - elif sys.version_info[0:2] == (3, 5): - version_suffix = '3' - else: - version_suffix = '3' - # TODO(BEAM-7474): Use an image which has correct Python minor version. - logging.warning('Make sure that locally built Python SDK docker image ' - 'has Python %d.%d interpreter. See also: BEAM-7474.' % ( - sys.version_info[0], sys.version_info[1])) + version_suffix = ''.join([str(i) for i in sys.version_info[0:2]]) Review comment: This changes the behavior for python 2. I agree with the change, let's make sure that we test it. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 296668) Time Spent: 2h 10m (was: 2h) > Write integration tests to test customized containers > ----------------------------------------------------- > > Key: BEAM-7909 > URL: https://issues.apache.org/jira/browse/BEAM-7909 > Project: Beam > Issue Type: Sub-task > Components: build-system > Reporter: Hannah Jiang > Assignee: Hannah Jiang > Priority: Major > Time Spent: 2h 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.14#76016)