mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
verify that setup.py jsversion
did something
This commit is contained in:
parent
5184196e04
commit
01de88687d
@ -740,10 +740,14 @@ class JavascriptVersion(Command):
|
||||
with open(nsfile) as f:
|
||||
lines = f.readlines()
|
||||
with open(nsfile, 'w') as f:
|
||||
found = False
|
||||
for line in lines:
|
||||
if line.startswith("IPython.version"):
|
||||
line = 'IPython.version = "{0}";\n'.format(version)
|
||||
if line.strip().startswith("IPython.version"):
|
||||
line = ' IPython.version = "{0}";\n'.format(version)
|
||||
found = True
|
||||
f.write(line)
|
||||
if not found:
|
||||
raise RuntimeError("Didn't find IPython.version line in %s" % nsfile)
|
||||
|
||||
|
||||
def css_js_prerelease(command):
|
||||
|
Loading…
Reference in New Issue
Block a user