Tricky question about native extension packaging

olivierbourdon38 at olivierbourdon38 at
Tue Feb 10 11:42:04 EST 2009

let's assume I (almost) have and extension available as a C file and
the and I want to generate from this single c file 2 .so
files using

cc -DOPTION1 x.c to produce
cc -DOPTION2 x.c to produce

and at runtime depending of my OS version either load x_1 or x_2

any (easy) way to do that and deliver the result as a single .egg
file ? What should the look like ?

Thanks for any insight

More information about the Python-list mailing list