Daniel Rall <dlr@finemaltcoding.com> writes:
> /usr/bin/python2 setup.py \
> -I/home/dlr/src/svn/subversion/bindings/swig \
> -I/home/dlr/src/svn/subversion/include -I/home/dlr/src/apache.org/httpd-2.0/srclib/apr/include -I/home/dlr/src/apache.org/apr/include \
> -S/home/dlr/src/svn/subversion/bindings/swig \
> -L/usr/local/subversion/lib -L/usr/local/apr/lib \
> -I'/usr/local/swig/lib/swig1.3' \
> -I'/usr/local/swig/lib/swig1.3/python' \
> -I'/usr/local/swig/lib/swig1.3/java' \
> -s"" \
> build --build-base=/home/dlr/src/svn/subversion/bindings/swig/python/build)
> Traceback (most recent call last):
> File "setup.py", line 58, in ?
> ["prefix=", "install-dir=", "help"])
> File "/usr/lib/python2.2/getopt.py", line 72, in getopt
> opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
> File "/usr/lib/python2.2/getopt.py", line 86, in do_longs
> has_arg, opt = long_has_args(opt, longopts)
> File "/usr/lib/python2.2/getopt.py", line 103, in long_has_args
> raise GetoptError('option --%s not recognized' % opt, opt)
> getopt.GetoptError: option --build-base not recognized
> make: *** [swig-py-ext] Error 1
Hmmm. The --build-base flag is not listed in setup.py's getopts. I'm
think it is a distutils-specific option. I noticed that the usual
distutils commandline processing seems to be obscured by what's in our
setup.py:
dlr@despot:svn$ python2 ./subversion/bindings/swig/python/setup.py --help install
Usage: setup.py [OPTIONS] build
setup.py install [--prefix PREFIX]
setup.py install_lib [--install-dir DIR]
Options:
-I dir search DIR for includes (multiple instances allowed)
-L dir search DIR for libraries (multiple instances allowed)
-S dir the DIR for the source of the subversion swig bindings
-s path use the swig binary found at PATH
dlr@despot:svn$ python2 ./subversion/bindings/swig/python/setup.py help
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: invalid command 'help' (no module named 'distutils.command.help')
dlr@despot:svn$ python2 ./subversion/bindings/swig/python/setup.py --help-commands
Traceback (most recent call last):
File "./subversion/bindings/swig/python/setup.py", line 58, in ?
["prefix=", "install-dir=", "help"])
File "/usr/lib/python2.2/getopt.py", line 72, in getopt
opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
File "/usr/lib/python2.2/getopt.py", line 86, in do_longs
has_arg, opt = long_has_args(opt, longopts)
File "/usr/lib/python2.2/getopt.py", line 103, in long_has_args
raise GetoptError('option --%s not recognized' % opt, opt)
getopt.GetoptError: option --help-commands not recognized
--
Daniel Rall <dlr@finemaltcoding.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 7 08:24:55 2002