[
https://issues.apache.org/jira/browse/BEAM-7672?focusedWorklogId=456793&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456793
]
ASF GitHub Bot logged work on BEAM-7672:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Jul/20 19:42
Start Date: 09/Jul/20 19:42
Worklog Time Spent: 10m
Work Description: tvalentyn commented on a change in pull request #12115:
URL: https://github.com/apache/beam/pull/12115#discussion_r452448602
##########
File path: sdks/python/container/boot.go
##########
@@ -170,6 +176,34 @@ func main() {
log.Fatalf("Python exited: %v", execx.Execute("python", args...))
}
+// setup wheel specs according to installed python version
+func setupAcceptableWheelSpecs() error {
+ cmd := exec.Command("python", "-V")
+ stdoutStderr, err := cmd.CombinedOutput()
+ if err != nil {
+ return err
+ }
+ re := regexp.MustCompile(`Python (\d)\.(\d).*`)
+ pyVersions := re.FindStringSubmatch(string(stdoutStderr[:]))
+ if len(pyVersions) != 3 {
+ return fmt.Errorf("cannot get parse Python version from %s",
stdoutStderr)
+ }
+ pyVersion := fmt.Sprintf("%s%s", pyVersions[1], pyVersions[2])
+ if pyVersion == "27" {
+ acceptableWhlSpecs = append(acceptableWhlSpecs,
"cp27-cp27mu-manylinux1_x86_64.whl")
Review comment:
Can we move this into the `switch` as well? Thank you!
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 456793)
Time Spent: 5h 10m (was: 5h)
> Accept Py3 wheels in SDK harness container.
> -------------------------------------------
>
> Key: BEAM-7672
> URL: https://issues.apache.org/jira/browse/BEAM-7672
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-harness
> Reporter: Valentyn Tymofieiev
> Assignee: yoshiki obata
> Priority: P3
> Time Spent: 5h 10m
> Remaining Estimate: 0h
>
> Currently we only accept Py27 wheels:
> https://github.com/apache/beam/blob/05900a43de1f380f124c688cd8d804b5133bda64/sdks/python/container/boot.go#L39
--
This message was sent by Atlassian Jira
(v8.3.4#803005)