Show More
@@ -168,6 +168,9 b' from distutils.errors import (' | |||||
168 | from distutils.sysconfig import get_python_inc, get_config_var |
|
168 | from distutils.sysconfig import get_python_inc, get_config_var | |
169 | from distutils.version import StrictVersion |
|
169 | from distutils.version import StrictVersion | |
170 |
|
170 | |||
|
171 | # Explain to distutils.StrictVersion how our release candidates are versionned | |||
|
172 | StrictVersion.version_re = re.compile(r'^(\d+)\.(\d+)(\.(\d+))?-?(rc(\d+))?$') | |||
|
173 | ||||
171 | def write_if_changed(path, content): |
|
174 | def write_if_changed(path, content): | |
172 | """Write content to a file iff the content hasn't changed.""" |
|
175 | """Write content to a file iff the content hasn't changed.""" | |
173 | if os.path.exists(path): |
|
176 | if os.path.exists(path): |
General Comments 0
You need to be logged in to leave comments.
Login now