python: Collected python version in bad format
Open
bug
runtime/python
- Dominant language
- Python
- Stars
- 826
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
We run `python -V` and get a result like `'Python 3.7.0 (default, Sep 10 2019, 18:15:34) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]\n'` which is unexpected - we try to keep the format `Python x.y.z`. (this build is Python 3.7.0 on CentOS 7).
I suppose we could catch this case and strip away the other parts, so we remain with `Python 3.7.0`. Be very defensive to avoid incorrectly parsing versions.
Contributor guide
Assessment
This issue has not been assessed yet.