Commit 1acf140b authored by Hanno Schlichting's avatar Hanno Schlichting

Made easy_install.py's _get_version except non final releases of Python, like 2.4.4c0. (hannosch)

parent bf1b5d1d
...@@ -7,6 +7,9 @@ Change History ...@@ -7,6 +7,9 @@ Change History
1.0.1 (unreleased) 1.0.1 (unreleased)
================== ==================
- Made easy_install.py's _get_version except non final releases of Python,
like 2.4.4c0. (hannosch)
- applied patch fixing rmtree issues on Windows (patch by - applied patch fixing rmtree issues on Windows (patch by
Gottfried Ganssauge) (ajung) Gottfried Ganssauge) (ajung)
......
...@@ -67,7 +67,7 @@ def _get_version(executable): ...@@ -67,7 +67,7 @@ def _get_version(executable):
o.close() o.close()
pystring, version = version.split() pystring, version = version.split()
assert pystring == 'Python' assert pystring == 'Python'
version = re.match('(\d[.]\d)([.]\d)?$', version).group(1) version = re.match('(\d[.]\d)([.].*\d)?$', version).group(1)
_versions[executable] = version _versions[executable] = version
return version return version
......
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