|
@@ -2,6 +2,7 @@
|
|
|
import glob
|
|
|
import hashlib
|
|
|
import tempfile
|
|
|
+import gzip
|
|
|
|
|
|
def bootstrap():
|
|
|
root = ["__hierarchy"]
|
|
@@ -151,8 +152,8 @@ def bootstrap():
|
|
|
self.file_b.write(text)
|
|
|
|
|
|
try:
|
|
|
- with open("bootstrap/bootstrap.m", "w") as fa:
|
|
|
- with open("bootstrap/minimal.m", "w") as fb:
|
|
|
+ with gzip.open("bootstrap/bootstrap.m.gz", "wb") as fa:
|
|
|
+ with gzip.open("bootstrap/minimal.m.gz", "wb") as fb:
|
|
|
f = Writer(fa, fb)
|
|
|
# Create the root first
|
|
|
f.write("Node root()\n")
|
|
@@ -301,6 +302,6 @@ def bootstrap():
|
|
|
f.write("Edge _user_IP(__hierarchy, new_user_initial_IP)\n", both=False)
|
|
|
f.write("Edge __user_IP(_user_IP, __IP_str)\n", both=False)
|
|
|
except:
|
|
|
- os.remove("bootstrap/bootstrap.m")
|
|
|
- os.remove("bootstrap/minimal.m")
|
|
|
+ os.remove("bootstrap/bootstrap.m.gz")
|
|
|
+ os.remove("bootstrap/minimal.m.gz")
|
|
|
raise
|