Re: [PyMOL] Procedure for adding packages to pymol site-packages?
Pete, Yes, this approach will work if you build from the open-source code, and indeed, that is the recommended approach if you need to link PyMOL to libraries with native code. The problem comes in when users wish to build native code and link them against precompiled PyMOL executables. That is difficult, though not impossible: It requires a local binary-compatible instance of Python for building the code (matching the Python version of PyMOL's hard-linked executable -- print sys.version). The compiled code modules can then be copied over for use inside PyMOL. Cheers, Warren > -Original Message- > From: Pete Meyer [mailto:pame...@mcw.edu] > Sent: Friday, March 06, 2009 4:28 PM > To: Schubert, Carsten [PRDUS] > Cc: Warren DeLano; pymol-users@lists.sourceforge.net > Subject: Re: [PyMOL] Procedure for adding packages to pymol site-packages? > > > how would I go about adding a package to the $PYMOL_PATH/ext/.../site- > packages w/o screwing up the install? > > > > For most packages the mechanism is "python setup.py install". Would this > work to run this from within pymol? > > With my usual way of installing pymol is to build most of the > dependencies from source, including python. This copy of python gets > sym-linked to pymol.python for building pymol (aka pymol.python setup.py > build , etc in the pymol source directory) and is only used for running > pymol. > > If you've installed things this way, then "pymol.python setup.py > install" for your package should work, assuming your environmental > python environmental variables are kept straight. > > But this is something I haven't needed to test, so if Warren says it's > not possible he's probably found a problem with this approach I missed. > > Pete > > -- > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > ___ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > >
Re: [PyMOL] Procedure for adding packages to pymol site-packages?
> how would I go about adding a package to the > $PYMOL_PATH/ext/.../site-packages w/o screwing up the install? > > For most packages the mechanism is "python setup.py install". Would this work > to run this from within pymol? With my usual way of installing pymol is to build most of the dependencies from source, including python. This copy of python gets sym-linked to pymol.python for building pymol (aka pymol.python setup.py build , etc in the pymol source directory) and is only used for running pymol. If you've installed things this way, then "pymol.python setup.py install" for your package should work, assuming your environmental python environmental variables are kept straight. But this is something I haven't needed to test, so if Warren says it's not possible he's probably found a problem with this approach I missed. Pete
Re: [PyMOL] Procedure for adding packages to pymol site-packages?
Carsten, Unfortunately not -- the trick to getting something like this to work is to build your stuff against a standalone Python executable using the identical Python version as PyMOL version to then copy your working, pre-built modules over into the PyMOL distribution ($PYMOL_PATH/modules). Cheers, Warren > -Original Message- > From: Schubert, Carsten [PRDUS] [mailto:cschu...@its.jnj.com] > Sent: Friday, March 06, 2009 12:38 PM > To: pymol-users@lists.sourceforge.net > Subject: [PyMOL] Procedure for adding packages to pymol site-packages? > > Hi, > > how would I go about adding a package to the $PYMOL_PATH/ext/.../site- > packages w/o screwing up the install? > > For most packages the mechanism is "python setup.py install". Would this > work to run this from within pymol? > > Thanks > > Carsten > > > -- > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > ___ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > >
[PyMOL] Procedure for adding packages to pymol site-packages?
Hi, how would I go about adding a package to the $PYMOL_PATH/ext/.../site-packages w/o screwing up the install? For most packages the mechanism is "python setup.py install". Would this work to run this from within pymol? Thanks Carsten