Skip to content

BLD: print_versions get uname() via cross-platform API #5784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from Dec 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pandas/util/print_versions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform
import sys


Expand All @@ -8,8 +9,12 @@ def show_versions():
print("Python: %d.%d.%d.%s.%s" % sys.version_info[:])

try:
sysname, nodename, release, version, machine = os.uname()
print("OS: %s %s %s %s" % (sysname, release, version, machine))
sysname, nodename, release, version, machine, processor = platform.uname()
print("OS: %s" % (sysname))
print("Release: %s" % (release))
#print("Version: %s" % (version))
#print("Machine: %s" % (machine))
print("Processor: %s" % (processor))
print("byteorder: %s" % sys.byteorder)
print("LC_ALL: %s" % os.environ.get('LC_ALL', "None"))
print("LANG: %s" % os.environ.get('LANG', "None"))
Expand Down