2011/12/7 Noel O'Boyle <baoille...@gmail.com>: > I'm afraid, it's not possible to ask disutils the location of the > site-packages folder (believe me, I have tried, googled, everything). > As a result, we have no choice. In any case, this simplifies > everything and I wouldn't change it back now. The user just needs to > add the lib directory to PYTHONPATH, RUBYPATH, CLASSPATH, PERL5LIB, > etc.
http://docs.python.org/install/index.html#how-installation-works Just ask Python what its prefix (sys.prefix) and version is and you get the location of site-packages: prefix/lib/pythonX.Y/site-packages Some additional logic might be needed for multilib systems. Any reason why this can't be used? I don't know about other bindings, but there should be a way also. Reinis ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel