Closed tbonfort closed 12 years ago
Author: sgillies@frii.com Date: 2004/05/25 - 20:23
Good to see Python being used at DM Solutions! Write me for help any time.
Frank Warmerdam fixed this in the CVS main (4.3), but it's not going to be
fixed in 4.2. Too close to the release. We'll take of it for 4.2.1.
Work around is to run the setup script like
python setup.py -I -I/opt/gdal_12/include build
See http://docs.python.org/dist/dist.html for more info about Python's
distutils module.
My idea for the best solution is to have the Python setup ignore mapscriptvars.
Instead, the mapserver makefile will write a distutils setup.cfg file in
mapscript/python. Then we can clean up and simply setup.py.
Author: nsavard@mapgears.com Date: 2004/05/25 - 20:52
I tried the workaround and obtain an error message (see below).
--------------------
Error message:
[nsavard@localhost python]$ python setup.py build --helppython setup.py -I
-I/opt/gdal_12/include build
[nsavard@localhost python]$ python setup.py -I -I/opt/gdal_12/include build
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option -I not recognized
[
Author: nsavard@mapgears.com Date: 2004/05/25 - 20:53
I forgot to say that I'm switching to 4.3 for testing purpose.
Author: sgillies@frii.com Date: 2004/05/25 - 21:11
Sorry, my previous instructions were bad. Try
python setup.py build_ext -I /opt/gdal_12/include build
Author: nsavard@mapgears.com Date: 2004/05/26 - 15:45
I'm happy to use mapscript Pyton. Thank you for your help.
Author: sgillies@frii.com Date: 2004/05/29 - 00:52
This is fixed in 4.2 as well as 4.3. I simply copied the setup.py
in 4.3 (fixed by Frank) to the 4.2 branch and verified that it works.
Reporter: nsavard@mapgears.com Date: 2004/05/25 - 19:25