[Distutils] Bug in parsing of .cfg files

M.-A. Lemburg mal@lemburg.com
Wed Sep 20 09:18:02 2000


Rene Liebscher wrote:
> 
> "M.-A. Lemburg" wrote:
> >
> > The following .cfg file produces an error:
> >
> > [sdist]
> > manifest = MANIFEST
> > no-defaults = 1
> > keep-tree = 1
> > formats=bztar,gztar,tar,zip,ztar
> >
> > ...
> > error: error in setup.cfg: command 'sdist' has no such option 'keep-tree'
> >
> > Looks as if the config file parser doesn't like options with
> > embedded hyphens (or maybe it's just me not knowing how to
> > pass the options ?).
> >
> You have to call it keep_tree.
> It is documented in "Distributing Python Modules"
> "4. Writing the Setup Configuration File".
> ( Note that an option spelled --foo-bar on the command-line is
> spelled foo_bar in configuration files. )

Ah ok. Thanks... after having made the change I now get:

error: error in setup.cfg: command 'sdist' has no such option 'no_defaults'
 
> May be distutils should accept both, foo-bar and foo_bar.
> It is not to hard to change it, lets see what is Gregs opinion.

Would be easier to understand, I guess.

Thanks,
-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/