# HG changeset patch # User Jeff Hammel # Date 1310143095 25200 # Node ID 75919adb199aae95a45253187e8b84f1b8c0e5b6 # Parent dba783d48eae7fc0ab4db1dfbff0e756947c81fc use compression, but it doesnt seem to help much diff -r dba783d48eae -r 75919adb199a carton.py --- a/carton.py Fri Jul 08 08:39:16 2011 -0700 +++ b/carton.py Fri Jul 08 09:38:15 2011 -0700 @@ -45,8 +45,8 @@ ENV='''%(ENV)s''' # packed files -VIRTUAL_ENV='''%(VIRTUAL_ENV)s'''.decode('base64') -PACKAGE_SOURCES='''%(PACKAGE_SOURCES)s'''.decode('base64') +VIRTUAL_ENV='''%(VIRTUAL_ENV)s'''.decode('base64').decode('zlib') +PACKAGE_SOURCES='''%(PACKAGE_SOURCES)s'''.decode('base64').decode('zlib') # unpack virtualenv tempdir = tempfile.mkdtemp() @@ -169,9 +169,9 @@ outfile = options.outfile if outfile is None: outfile = environment + '.py' - variables = {'VIRTUAL_ENV': VIRTUAL_ENV.encode('base64'), + variables = {'VIRTUAL_ENV': VIRTUAL_ENV.encode('zlib').encode('base64'), 'ENV': environment, - 'PACKAGE_SOURCES': source_buffer.getvalue().encode('base64')} + 'PACKAGE_SOURCES': source_buffer.getvalue().encode('zlib').encode('base64')} f = file(outfile, 'w') f.write(template % variables) f.close()