Show More
@@ -425,9 +425,8 b' def git_prebuild(pkg_dir, build_cmd=build_py):' | |||||
425 | # loose as `.dev` is suppose to be invalid |
|
425 | # loose as `.dev` is suppose to be invalid | |
426 | print("check version number") |
|
426 | print("check version number") | |
427 | loose_pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d*)?$') |
|
427 | loose_pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d*)?$') | |
428 | import IPython.core.release as r |
|
428 | if not loose_pep440re.match(version): | |
429 | if not loose_pep440re.match(r.version): |
|
429 | raise ValueError("Version number '%s' is not valid (should match [N!]N(.N)*[{a|b|rc}N][.postN][.devN])" % version) | |
430 | raise ValueError("Version number '%s' is not valid (should match [N!]N(.N)*[{a|b|rc}N][.postN][.devN])" % r.version) |
|
|||
431 |
|
430 | |||
432 |
|
431 | |||
433 | build_cmd.run(self) |
|
432 | build_cmd.run(self) |
General Comments 0
You need to be logged in to leave comments.
Login now