[Distutils] setup.cfg

Donaldo Fastoso donquestion at rocketmail.com
Sat Nov 22 16:49:56 CET 2014


Hi,

is there a way for python 2.7 to write something like:	

setup.py:

     from distutils.core import setup
     setup()

setup.cfg:

     [metadata]
     name=foo
     version=0.1


and get on the cmdline:

     python setup.py --name
     foo


in distutils2 this was possible. Has python 2.7 stdlib distutils similar
capabilities? May i use the [global] section? (as for now i only get
errors trying that.) Or should i use the [metadata] command to implement
it myself?


More information about the Distutils-SIG mailing list