##// END OF EJS Templates
Clean setup.py
Matthias Bussonnier -
Show More
@@ -23,7 +23,6 b' requires utilities which are not available under Windows."""'
23 from __future__ import print_function
23 from __future__ import print_function
24
24
25 import sys
25 import sys
26 import re
27
26
28 # This check is also made in IPython/__init__, don't forget to update both when
27 # This check is also made in IPython/__init__, don't forget to update both when
29 # changing Python version requirements.
28 # changing Python version requirements.
@@ -294,15 +293,6 b' setup_args.update(setuptools_extra_args)'
294
293
295
294
296 def main():
295 def main():
297 try:
298 # loose as `.dev` is suppose to be invalid
299 print("check version number")
300 loose_pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d*)?$')
301 import IPython.core.release as r
302 if not loose_pep440re.match(r.version):
303 raise ValueError("Version number '%s' is not valid (should match [N!]N(.N)*[{a|b|rc}N][.postN][.devN])" % r.version)
304 except:
305 pass
306 setup(**setup_args)
296 setup(**setup_args)
307
297
308 if __name__ == '__main__':
298 if __name__ == '__main__':
General Comments 0
You need to be logged in to leave comments. Login now