@@ -0,0 +1,851 @@
+import os%0Aimport zipfile%0Afrom os.path import join%0A%0Afrom enstaller import __version__%0Afrom enstaller.indexed_repo.metadata import data_from_spec%0A%0A%0Aspec = dict(%0A    name=%22ironpkg%22,%0A    version=__version__,%0A    build=1,%0A    arch='x86',%0A    platform='cli',%0A    osdist=None,%0A    python=None,%0A    packages=%5B%5D,%0A)%0A%0A%0Adef build_egg(path):%0A    z = zipfile.ZipFile(path, 'w', zipfile.ZIP_STORED)%0A    for root, dirs, files in os.walk('.'):%0A        if not root%5B2:%5D.startswith(('egginst', 'enstaller')):%0A            continue%0A        for fn in files:%0A            if not fn.endswith('.py'):%0A                continue%0A            path = join(root, fn)%0A            z.write(path, path%5B2:%5D.replace('%5C%5C', '/'))%0A    z.writestr('EGG-INFO/spec/depend', data_from_spec(spec))%0A    z.close()%0A%0A%0Aif __name__ == '__main__':%0A    build_egg('%25(name)s-%25(version)s-%25(build)s.egg' %25 spec)%0A

add build script