Python 2.1 distutils swig_cpp and binary installation target dir question

Thomas Heller thomas.heller at ion-tof.com
Tue Jul 31 07:06:23 EDT 2001


[posted and mailed]
"Brad Clements" <bkc at Murkworks.com> wrote in message news:3b647cb1_7 at news.newsgroups.com...
> Question 1. Is there any way to specify swig_cpp in the setup.py file? I
> couldn't figure it out
No. You should specify it in the setup.cfg file, which allows to specify
default command line arguments:
-----
[build_ext]
swig-cpp=1
-----
>
> Question 2. I created a binary self-extracting windows package.. It installs
> to <pythonDir>, where I expect it to install to
> <pythonDir/Lib/site-packages> or <pythonDir/Lib>
>
> Is this the correct behavoir, or did I do something wrong?

This is correcr behaviour, although it is likely to change - See PEP250.
If you are running 'python setup.py install' you can override it with
command line options, but not in a self-extrating window package (I assume
you're speaking of bdist_wininst here).

Thomas Heller





More information about the Python-list mailing list