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