ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> c++-sig
c++-sig
[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] using msvc lib in python | [C++-sig] Re: using msvc lib in python
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved