Commit Graph

29 Commits

Author SHA1 Message Date
Marc-André Lemburg dbd61a2bff If Mark Hammonds win32 tools are not available, try to use the _winreg module
and sys.getwindowsversion() to get at the Windows version info.

For the machine and processor uname() values, use the environment variables
for these on Windows XP and later.
2008-03-20 17:31:36 +00:00
Marc-André Lemburg 50967bdec2 Add new name for Mandrake: Mandriva. 2008-03-08 10:01:43 +00:00
Sean Reifscheider f09597c1fd issue1082: Fixing platform and system for Vista. 2007-09-17 20:53:21 +00:00
Marc-André Lemburg b24cd0f05a Add patch #1726668: Windows Vista support. 2007-06-12 09:26:49 +00:00
Marc-André Lemburg 0e09788eda Apply patch #1734945 to support TurboLinux as distribution. 2007-06-12 09:09:58 +00:00
Tim Peters f733abb783 Whitespace normalization. 2007-01-30 03:03:46 +00:00
Marc-André Lemburg 3b8f60b700 Use defaults if sys.executable isn't set (e.g. on Jython).
This change allows running PyBench under Jython.
2007-01-13 23:13:54 +00:00
Marc-André Lemburg 2be9d43c18 Add parameter sys_version to _sys_version().
Change the cache for _sys_version() to take the parameter into account.

Add support for parsing the IronPython 1.0.1 sys.version value - even
though it still returns '1.0.0'; the version string no longer includes
the patch level.
2007-01-13 22:32:21 +00:00
Neal Norwitz 4b86f8b88b Fix grammar in docstrings 2007-01-13 21:22:37 +00:00
Marc-André Lemburg 9e0dc960d7 Bump version number and change copyright year.
Add new API linux_distribution() which supports reading the full distribution
name and also knows how to parse LSB-style release files.

Redirect the old dist() API to the new API (using the short distribution name
taken from the release file filename).

Add branch and revision to _sys_version().

Add work-around for Cygwin to libc_ver().

Add support for IronPython (thanks for Anthony Baxter) and make
Jython support more robust.
2007-01-13 21:00:08 +00:00
Ronald Oussoren 749d070e93 Teach platform about darwin/x86 2006-04-17 13:37:15 +00:00
Martin v. Löwis 1df5c3961c Generalize buildno to be a sequence of non-comma
characters.
2006-01-06 00:44:11 +00:00
Neal Norwitz 3dafaabfb5 Fix _sys_version() so it works with the new buildno, not sure if it is correct. test_platform passes 2005-12-18 04:10:10 +00:00
Walter Dörwald e5a7fad356 Fix typo. 2005-11-21 17:01:27 +00:00
Marc-André Lemburg 380f417e15 Patch by pythonic <pythonic@gmail.com> to support Fedora
as Linux distro.
2005-11-07 16:11:02 +00:00
Marc-André Lemburg cdc7923f6d Added normalization for Windows system name. Closes SF #945665. 2004-06-19 17:17:00 +00:00
Guido van Rossum 843c734ddd Using reversed() is not compatible with Python 1.5.2. 2004-05-04 18:18:59 +00:00
Marc-André Lemburg 91e83e209d Added more Windows version names (thanks to Thomas Heller).
Fixed bug in platform() cache (thanks to Brett Cannon).

(Restored Python 1.5.2 compatibility.)
2004-03-25 18:35:12 +00:00
Brett Cannon 9001cde559 Fix last patch to be backwards-compatible with Python 1.5.2 .
Bumped version micro number.
2004-03-25 18:32:11 +00:00
Brett Cannon 21beb4c2ce Fixed a caching bug in platform.platform() where the argument of 'terse' was
not taken into consideration when caching value.
2004-03-25 16:55:12 +00:00
Raymond Hettinger 85c20a41df Implement and apply PEP 322, reverse iteration 2003-11-06 14:06:48 +00:00
Raymond Hettinger cc523fc53d SF patch #834015: Remove imports of unused modules
(Contributed by George Yoshida.)
2003-11-02 09:47:05 +00:00
Jack Jansen a290e3d7c6 Bug fix for #780461: 'sysu' gestalt selector is meaningless on MacOSX,
but attempting to get it resulted in a crash. Fixed. Backport candidate.
2003-08-11 11:08:49 +00:00
Brett Cannon 8ab27dfa13 Touch-up to docstrings. 2003-08-05 03:52:04 +00:00
Neal Norwitz 9b924c690e remove extra parameter from _java_getprop, remove duplicate imports 2003-06-29 04:17:45 +00:00
Andrew M. Kuchling 47c2ab6b54 Fix docstring typo 2003-04-24 16:36:49 +00:00
Tim Peters 0eadaac7dc Whitespace normalization. 2003-04-24 16:02:54 +00:00
Marc-André Lemburg 366a0feb9a Reformatted a bit to remove the lengthy re.compile() from the function
definitions.
2003-04-24 11:46:35 +00:00
Marc-André Lemburg 246d847475 New module platform.py, submitted by Marc-Andre Lemburg.
There's no separate documentation for this module yet - apart from the
doc-strings which explain the APIs.
2003-04-24 11:36:11 +00:00