Wen,

The only form of end-user PyMOL compilation we support on Windows is via 
Python's distutils facility.  

Assuming that your system paths are set up correctly, distutils compilations 
will work fine with msvc6 -- no Makefile is required.  

Your own c/c++ code should be built as a standalone DLL -- separate from 
_cmd.*, and you should use the Python interpreter to bring all of the native 
components together at runtime.

Cheers,
Warren

--
Warren L. DeLano, Ph.D.                     
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213           
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834     
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com      
 

> -----Original Message-----
> From: pymol-users-ad...@lists.sourceforge.net 
> [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of 
> wenming hu
> Sent: Wednesday, August 24, 2005 6:49 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] question about _cmd.pyd
> 
> i have written python extend module by c/c++, but i saw a 
> module of pyMOL called _cmd.pyd instead of _cmd.dll. and it 
> is written by c/c++ also, the author use makefile to compile 
> it into _cmd.pyd. i have some question about it:
> 1. what's the difference between them? i saw the code is same 
> as common c++ extended python module, can i use microsoft 
> visual C++ to create a dll project for compiling it as _cmd.dll?
> 2. i have never written a module with extension *.pyd, how to 
> make a *.pyd?
> and, i doubt, how the author debug the _cmd.pyd, only by Makefile?
> 3. i have a common problem about writting a extend module by 
> c/c++, i often use msvc to write it, but i only can invoke 
> release dll, not debug dll, even i use command like this: 
> python_d test.py, in which case, test.py import test.dll, and 
> invoke test.hello() api. why? anybody has nice way to debug 
> it? thank you.
> 
> 4. how does the author use msvc compile it as cmd.pyd? i did 
> not find any legal makefile for msvc6.
> 
> 
> any help would be appreciated.
> 
> 
> with my best regards,
>     Wen
> 
> 
> ________________________________
> 
> DO YOU YAHOO!?
> 雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱 <http://cn.mail.yahoo.com>  
> 

Reply via email to