On 7 December 2011 20:20, My Th <rei4...@gmail.com> wrote: > 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.
Well, that mightn't always work. The code in distutils to determine the location of site-packages is a bit more complicated. But now that I think about it, we could just use distutils to install the package after it has already been compiled (this was where the problem was). > > 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