Commit 42799f20 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Add get_os

parent 61829885
...@@ -329,6 +329,12 @@ function pip_opts { ...@@ -329,6 +329,12 @@ function pip_opts {
[ -n "$MANYLINUX_URL" ] && echo "--find-links $MANYLINUX_URL" [ -n "$MANYLINUX_URL" ] && echo "--find-links $MANYLINUX_URL"
} }
function get_os {
# Report OS as given by uname
# Use any Python that comes to hand.
python -c 'import platform; print(platform.uname()[0])'
}
function get_platform { function get_platform {
# Report platform as given by uname # Report platform as given by uname
# Use any Python that comes to hand. # Use any Python that comes to hand.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment