Commits

Kirill Simonov committed b003f28

Include vendor packages to the source distribution.

Comments (0)

Files changed (2)

                                      os.path.basename(target))
             if os.path.exists(build_dir):
                 remove_tree(build_dir)
-            os.mkdir(build_dir)
+            os.makedirs(build_dir)
             if url.endswith('.zip'):
                 archive = zipfile.ZipFile(cStringIO.StringIO(data))
                 entries = archive.infolist()
             move.variables['htsql-addons'] = addons
             mktree("./build/tmp")
             run("hg archive ./build/tmp/htsql")
+            if with_doc:
+                setup_py("build_vendor", cd="./build/tmp/htsql")
             for dirname in ls("./build/tmp/htsql/src/*"):
                 if os.path.basename(dirname) not in packages:
                     rmtree(dirname)