Skip to content

Commit

Permalink
Changes to oil --version.
Browse files Browse the repository at this point in the history
- Bump the version number to prepare for the next release
- Report OVM vs CPython.  Patch our fork to identify as 'OVM'.
- Report CPython version and the compiler (e.g. GCC)

Also update .gitignore.
  • Loading branch information
Andy Chu committed Oct 30, 2017
1 parent ab88ce7 commit 547056e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
*.swp
*.pyc
.vagrant
_chroot
_tmp
_bin
_build
Expand Down
4 changes: 3 additions & 1 deletion Python-2.7.13/Lib/platform.py
Expand Up @@ -1457,7 +1457,9 @@ def python_implementation():
'PyPy' (Python implementation of Python).
"""
return _sys_version()[0]
# PATCH to identify OVM
return 'OVM'
#return _sys_version()[0]

def python_version():

Expand Down
3 changes: 3 additions & 0 deletions bin/oil.py
Expand Up @@ -171,6 +171,9 @@ def _ShowVersion():
print('Arch: %s' % platform.machine())
print('OS: %s' % platform.system())
print('Platform: %s' % platform.version())
print('Compiler: %s' % platform.python_compiler())
print('Interpreter: %s' % platform.python_implementation())
print('Interpreter version: %s' % platform.python_version())


def OshMain(argv, login_shell):
Expand Down
2 changes: 1 addition & 1 deletion oil-version.txt
@@ -1,4 +1,4 @@
0.1.0
0.2.alpha1

# The first line of this file is the Oil version, and the rest is ignored.
# It's used at build time for the release tarball, and at runtime for oil
Expand Down

0 comments on commit 547056e

Please sign in to comment.