[C++-sig] Re: help building hello world example on Debian

Daniel Holth dholth at fastmail.fm
Sun Apr 11 06:19:57 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Faheem Mitha wrote:

| Daniel Holth just wrote that distutils works for him on Linux
| (apparently he uses Gentoo). He mentioned a Python extension
| package of his called shoutpy which uses boost.python and
| distutils, and it builds on Debian with no problem. Therefore, I
| might give this a try.

I'm very glad you've enjoyed my "exemplary" module. And I've also
figured out boost.build v1. Definitely not harder to figure out than
automake or even make. It's a very edifying way to build my little C++
example, too.

Version 0.5.2 now includes a Jamfile that builds the module.
http://dingoskidneys.com/shoutpy/

shoutpy is a wrapper that lets you use Python to send compressed audio
to an icecast server for internet radio broadcast. The wrapper uses
three files: a header and C++ file to wrap libshout2 in a C++ class,
and the boost.python declarations in the third.

http://www.xiph.org/~brendan/shout-python/ wraps the same library
using the Python C api directly; my boost.python binary is 29 times
larger than that when compiled by distutils and the boost-jam debug
build is 165 times larger. When you run 'strip' on shoutpy.so the
extension is only 18 times larger than the C version of almost the
same thing. But as we know the boost.python wrapper gets written much
more quickly and in a less dodgy way than often ad-hoc
direct-to-Python-API code, and if we didn't care about programmer
efficiency we wouldn't be using Python in the first place.

- - Daniel Holth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAeMdsVh4W2pVfoMsRAtC+AJ0WRzoowFRNKUX6TYr6NtdB2qG/kwCgzWIf
pUO8JgWIZVh6nn4qyO179AU=
=ggN1
-----END PGP SIGNATURE-----





More information about the Cplusplus-sig mailing list