tag:blogger.com,1999:blog-3247031558480588539.post2613000726700036280..comments2023-10-26T01:11:22.345-07:00Comments on James' Blog: Boost::python + Distutils Python Extension Module ExampleJames Gregsonhttp://www.blogger.com/profile/17703566385559400211noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3247031558480588539.post-14929659248858026152014-11-23T10:50:55.818-08:002014-11-23T10:50:55.818-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/16391350040808096723noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-12868138435355388032014-08-05T09:23:42.248-07:002014-08-05T09:23:42.248-07:00Hi,
You'll need to install boost (boost.org) ...Hi,<br /><br />You'll need to install boost (boost.org) with the boost::python option enabled. The build script should work provided that the boost header files are in the search patch. <br /><br />On my system (OS-X with boost installed via HomeBrew) these are in:<br /><br />/usr/local/include<br /><br />But you will probably have to modify it for your system<br /><br />JamesJames Gregsonhttps://www.blogger.com/profile/17703566385559400211noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-11257881417040162782014-06-24T06:57:50.056-07:002014-06-24T06:57:50.056-07:00Very useful post!
One question though:
When I want...Very useful post!<br />One question though:<br />When I want to import the module its missing the boost::python library. Why can it not find it?<br />Or if I have a 3rd party library in my extension code, how would find the python that library?<br />Anonymoushttps://www.blogger.com/profile/01382457497707785577noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-85654999064675129592013-11-04T10:00:47.560-08:002013-11-04T10:00:47.560-08:00My pleasure. It took a while to figure out so I t...My pleasure. It took a while to figure out so I thought I'd try to save others the difficulty.James Gregsonhttps://www.blogger.com/profile/17703566385559400211noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-49036483555357914382013-11-03T11:26:05.158-08:002013-11-03T11:26:05.158-08:00This is awesome! Thanks for posting a way of using...This is awesome! Thanks for posting a way of using boost with distutils.Naveenhttps://www.blogger.com/profile/17093217100573285086noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-11455427029430679542012-09-12T09:02:29.900-07:002012-09-12T09:02:29.900-07:00I'm glad you found it useful!I'm glad you found it useful!James Gregsonhttps://www.blogger.com/profile/17703566385559400211noreply@blogger.comtag:blogger.com,1999:blog-3247031558480588539.post-59060983125358099112012-09-11T12:28:56.298-07:002012-09-11T12:28:56.298-07:00Thank you for this! I was having a hard time decid...Thank you for this! I was having a hard time deciding on the trade-off between really low-level CPython API (but with a good build system), and a higher-level Boost Python API (but with a terrible bjam build system). Thanks to your post, I don't have to pick one or the other, I can use the high-level API and the good build system! Yay!Defcronykehttps://www.blogger.com/profile/03878143492693304551noreply@blogger.com