output file name for *.py

Lyle Johnson ljohnson at resgen.com
Wed Mar 6 10:50:16 EST 2002


> swig -python -c++ -shadow -o path/interface_wrap.cxx interface.i
>
> This creates two files:
>
> path/interface_wrap.cxx
>
> and interface.py in the *local* directory.
>
> How can I specify a different output directory for interface.py?

Which version of SWIG is this? The current development version of SWIG (from
CVS) places the *.py file in the same output directory as the *.cxx file.

> According to Lutz, Programming Python, 2nd edition, p. 1139,
> also a third file interface_wrap.doc should be created.
> Why is this file not created? Do I need an additional option?

The old documentation system from SWIG 1.1 has been disabled/removed for
SWIG 1.3. It may reappear at some point.





More information about the Python-list mailing list