zooko wrote:
On Feb 12, 2008, at 9:35 PM, Ian Bicking wrote:
I don't know that many people have used this (or know about it), but I added a command to buildutils (http://knowledgetap.com/hg/buildutils/) to do "python setup.py bundle", which takes a package and all its dependencies and puts them together, with a script that adds all the dependencies. It's like what zc.buildout does mechanically, but intended to be used more like py2exe. I think it'd fit the model of managing Python commands and scripts pretty well.
That's interesting. What we do is have our setup.py look in a directory named "misc/dependencies/" and add any tarballs it finds therein to the dependency_links:
That's similar to bundle; bundle just calls easy_install to install all the dependencies into a particular directory, then adds "site.addsitedir(dependency_dir)" to the top of any scripts. But as a result you don't have to call setup.py on the host. Figuring out the location of dependency_dir is less than perfect. Both relative and absolute filenames have their problems. Ian