[Distutils] Static metadata using setup.cfg
alex.gronholm at nextday.fi
Tue Aug 18 04:11:28 CEST 2009
David Lyon kirjoitti:
> On Mon, 17 Aug 2009 09:34:56 +0200, Tarek Ziadé <ziade.tarek at gmail.com>
>> We can use the [global] section of the setup.cfg file to describe them.
> My suggestion is [setup] because it directly corresponds to the setup()
> function. I know it is a triplication of the name (setup.cfg, setup()
> and then [setup]) but it's much more consistent and will be easier to
> find for new users.
> name: foo
> version: 1.0
> author: tarek
> long_description: some
> long description
> url: http://example.com
> And then...
How would you declare dependencies? Remember that the list of
dependencies depends on at least two variables: Python version and platform.
>> from distutils.core import setup
> That's all that it should be (for now... evil grin.. :-)
> In a commercial level app you always need to do extra
> stuff. If we can't do this now then fine.. later..
> But it needs to be pointed out that these things are
> somewhat mandatory for python applications, not
> necessarily packages.
> from distutils.core import setup
> preinstall() # Read current environment and adjust
> # installation.. twiddle directory locations
> # and perphaps make choices dependent on
> # environment KDE/Gnome/Windows/Mac
> setup() # run the distutils function
> postinstall() # Now generate the documentation, register
> # .dll files, update environment, create
> # window manager shortcuts etc
> Distutils-SIG maillist - Distutils-SIG at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG