Re: [PyMOL] Procedure for adding packages to pymol site-packages?

2009-03-06 Thread Warren DeLano
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?

2009-03-06 Thread Schubert, Carsten [PRDUS]
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




[PyMOL] model refuses to display surface and mesh

2009-03-06 Thread petr benes
Dear pyMol users,
 I am trying to load a simple model using python into pymol using the following 
script. All works perfectly until i click for this new model to display its 
surface or mesh. The other thing is that in older versions 0.99rc the surface 
and mesh were correctly displayed, however this works no longer with 1.1 version
Does anyone know how to fix the issue? Thanks. Petr Benes

from chempy.models import Indexed
from chempy import Bond, Atom
from whrandom import random
from pymol import cmd

model = Indexed()

# create some atoms

for a in range(1,11):
   at = Atom()
   at.name = "X%02d"%a
   at.coord = [random()*5,random()*5,random()*5]
   at.vdw = 2.0
   model.atom.append(at)

# now create some bonds

for a in range(1,10):
   bd = Bond()
   bd.index = [a-1,a] # zero-based indices!
   model.bond.append(bd)

# now load and label

cmd.load_model(model,"example")
cmd.label("example","name")