Re: [PyMOL] How to manage plugin dependencies

2011-07-31 Thread Michael Lerner
Hi Osvaldo,

What module? Newer versions of PyMOL ship with a much more featured set of
Python modules (scipy, numpy, matplotlib, Bio, etc.).

Cheers,

-Michael

On Sun, Jul 31, 2011 at 12:10 AM, Osvaldo Martin aloctavo...@gmail.comwrote:

 Hi Everyone,

 I`m writing a Python plug-in that depends on a certain Python module. For
 Linux users It would be easy to install this module because is available
 through the repositories (I think Mac OsX has a repositories system too, but
 I am not sure) . But for Windows this could be a little more complicated, 1)
 They don´t have a repository system and 2) Python is not installed by
 default in Windows, hence if they install any Python module this module will
 not be available to PyMol.

 I think there are at least two options.

 1) The easy one (for me): To distribute a README file with the
 instructions to install the plugin in each platform and to make my plug-in
 to check if the module if available, if not ask the user to install it.

 2) The easy one (for the user): To distribute this module with my plug-in,
 and create some installer to perform the installation in a more or less
 automatic way.

 Which option would be the better? It is option 2 to complicated to
 implement?, it is worthwhile? which are the easiest way to install Python
 modules on Windows and Mac OsX (and making them available to PyMol)?

 Thanks in advance.

 Cheers,

 Osvaldo.




 --
 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




-- 
Michael Lerner, Ph.D.
IRTA Postdoctoral Fellow
Laboratory of Computational Biology NIH/NHLBI
5635 Fishers Lane, Room T909, MSC 9314
Rockville, MD 20852 (UPS/FedEx/Reality)
Bethesda MD 20892-9314 (USPS)
--
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

[PyMOL] How to manage plugin dependencies

2011-07-30 Thread Osvaldo Martin
Hi Everyone,

I`m writing a Python plug-in that depends on a certain Python module. For
Linux users It would be easy to install this module because is available
through the repositories (I think Mac OsX has a repositories system too, but
I am not sure) . But for Windows this could be a little more complicated, 1)
They don´t have a repository system and 2) Python is not installed by
default in Windows, hence if they install any Python module this module will
not be available to PyMol.

I think there are at least two options.

1) The easy one (for me): To distribute a README file with the
instructions to install the plugin in each platform and to make my plug-in
to check if the module if available, if not ask the user to install it.

2) The easy one (for the user): To distribute this module with my plug-in,
and create some installer to perform the installation in a more or less
automatic way.

Which option would be the better? It is option 2 to complicated to
implement?, it is worthwhile? which are the easiest way to install Python
modules on Windows and Mac OsX (and making them available to PyMol)?

Thanks in advance.

Cheers,

Osvaldo.
--
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