##// END OF EJS Templates
verify that `setup.py jsversion` did something
Min RK -
Show More
@@ -740,10 +740,14 b' class JavascriptVersion(Command):'
740 with open(nsfile) as f:
740 with open(nsfile) as f:
741 lines = f.readlines()
741 lines = f.readlines()
742 with open(nsfile, 'w') as f:
742 with open(nsfile, 'w') as f:
743 found = False
743 for line in lines:
744 for line in lines:
744 if line.startswith("IPython.version"):
745 if line.strip().startswith("IPython.version"):
745 line = 'IPython.version = "{0}";\n'.format(version)
746 line = ' IPython.version = "{0}";\n'.format(version)
747 found = True
746 f.write(line)
748 f.write(line)
749 if not found:
750 raise RuntimeError("Didn't find IPython.version line in %s" % nsfile)
747
751
748
752
749 def css_js_prerelease(command):
753 def css_js_prerelease(command):
General Comments 0
You need to be logged in to leave comments. Login now