On Jul 31 2011, Thomas Holder wrote: >Hi Jeff, > >> I have several questions about extending PyMOL via modules or plugins. >> >> It appears that the primary difference between the two is windows for modules are created at during start up and plugin windows can be brought up >> on demand (from the plugins menu). Are there other differences? > >I would say a pymol plugin is just a module that provides a >__init_plugin__ (or __init__) function which gets as argument the >PMGApp instance, which is PyMOLs external GUI. This is of course >required if the module wants to add items to the plugins menu or open >dialogs. But extending the plugins menu or opening any windows is not >mandatory for plugins or other modules. > >> What is the current status of wxPython versus Tkinter for the future of >> PyMOL? I could look at wxPython, but I seem to be at a loss to find the >> python binary for the prebuilt Mac OS PyMOL Application. >> This has probably been brought up before, what are the issues with using an >> egg for extensions that have more than one file? > >If you stay with pure python and just import your module, there should >be no issues. However the plugin architecture (modules within the >pmg_tk/startup directory) so far only recognizes single python files >(this will most likely change in the future). >
More specifically, I am looking for the python interpreter that I should be using on Mac OS to build C modules to place in one of the prebuilt PyMOL's search paths. I found the -qc flags for PyMOL, and will try to use that. With regards to the single file for a plugin, it is technically true that only one file is recognized, but one can fairly easily add additional modules provided they can build them and place them in a place like ~pymol_dir/ext/lib/python<major_ver>.<minor_ver>/site-packages. However, compiled extension modules generally require the python binary to build correctly. My end goal is to be able to compile a boost.python extension module for PyMOL on Mac OS. It works as expected on recent Linux systems when I build PyMOL from source using the system Python. I am hoping that "pymol -qc" will work, but was wondering if that is the only way to access the python interpreter from a prebuilt PyMOL 1.4 on Mac OS. Regards, Jeff Van Voorst ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net