distutils

Michael Hudson mwh at python.net
Wed Aug 20 10:20:52 EDT 2003


"Bryan" <belred1 at yahoo.com> writes:

> "Michael Hudson" <mwh at python.net> wrote in message news:7h3y8xo4q1v.fsf at pc150.maths.bris.ac.uk...
> > "Bryan" <belred1 at yahoo.com> writes:
> >
> > > what is the correct way to pass custom values to a distutil's setup
> > > script?  i'd like to pass on the command line the libraries_dir
> > > path.  should i just parse it out from sys.argv?
> >
> > Um, most options already have an associated command line option...
> > doesn't the --install-dir option to install_lib do what you want?
> >
> 
> it doesn't work for the library_dirs
> 
> setup.py install --library_dir=".."
> error: option --library-dirs not recognized
> 
> or
> 
> setup.py --library_dir=".." install
> error: option --library-dirs not recognized

Oh, *that* option.

You have to pass that directly to build_ext, it seems.  'install'
doesn't pass it through.

Cheers,
mwh

-- 
  I believe C++ instills fear in programmers, fear that the
  interaction of some details causes unpredictable results.
                                        -- Erik Naggum, comp.lang.lisp




More information about the Python-list mailing list