[Distutils] Re: SWIG: two modules, but only one can be installed

Torsten Bronger bronger at physik.rwth-aachen.de
Mon Feb 21 01:10:13 CET 2005


Hallöchen!

Lars Immisch <lars at ibp.de> writes:

> [...]
>
>> But mymodule.py doesn't exist as a source file.  Instead, it is
>> *created* by SWIG.
>
> Ah. It sounds like it's just the SWIG naming conventions that
> irritate you.

I don't think so.  ;-)

> [...]
>
> Try just:
>
> setup(name = 'my',
>        ext_modules = [Extension('mymodule',
>                                 sources = ['mymodule.i'])]

Well, I had also tried this variant, but then distutils generates a
mymodule.lib instead of _mymodule.lib and the Microsoft linker
complains about not finding the external symbol "initmymodule".

> and distutils should do the Right Thing (tm).

Due to my compiler situation, I feel forced to use Python 2.3.
Could this be the reason for my problem?

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus



More information about the Distutils-SIG mailing list