[C++-sig] Re: using msvc lib in python
by Mike Rovner other posts by this author
Aug 19 2003 10:59PM messages near this date
[C++-sig] Re: using msvc lib in python
|
[C++-sig] Some patches to make the "Automatic PyUnicode to 'const
char*'" possible, and make __stdcall function bindable
benny@[...].de wrote:
> Is it possible to create the pyd-file using the
> Visual Studio??? i dont wanT to use the command line.
It's pretty easy - I use it.
First .pyd is a plain .dll file.
- Make a project "Dynamic library",
- In Linker General tab
-- name the linker Output File "your_module_name.pyd",
-- put in Additional Library Directories like
Python22\libs;\boost\libs\python\build\VisualStudio\bin
(yes, I use to build BPL with VS also)
- In Linker Input
-- put in Additional Dependencies boost_python.lib (or boost_python_d.lib
for debug)
Add you modules/libraries and build solution will give you module for Python
importing.
I even debug it from VS using Debugging Command "python.exe" with my script
name
(which imports the extension module) as argument.
Enjoy,
Mike
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Mike Rovner
Mike Rovner
Mike Rovner
|