mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armand Grillet <agril...@mesosphere.io>
Subject Review Request 67247: Added support script to check if Python >= 3.6 is available.
Date Tue, 22 May 2018 12:39:24 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67247/
-----------------------------------------------------------

Review request for mesos and Andrew Schwartzmeyer.


Bugs: MESOS-8770
    https://issues.apache.org/jira/browse/MESOS-8770


Repository: mesos


Description
-------

Added support script to check if Python >= 3.6 is available.


Diffs
-----

  support/check-python3.py PRE-CREATION 


Diff: https://reviews.apache.org/r/67247/diff/1/


Testing
-------

On my machine (macOS High Sierra), python is 2.7 and python3 is 3.6.
```
$ python check-python3.py
$ python3 check-python3.py
```

Then changed the loop in the script to have `for x in range(0, 7):`.

```
$ python check-python3.py
The support scripts will be upgraded to Python 3 by July 1st.
Make sure to install Python 3.6 on your machine before.
$ python3 check-python3.py
```
Then changed the script to have `elif sys.version_info[1] < 7:`
```
$ python check-python3.py
The support scripts will be upgraded to Python 3 by July 1st.
Make sure to install Python 3.6 on your machine before.
$ python3 check-python3.py
The support scripts will be upgraded to Python 3 by July 1st.
Make sure to install Python 3.6 on your machine before.
```


Thanks,

Armand Grillet


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message