[Distutils] Static metadata using setup.cfg

Alex Grönholm 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>
> wrote:
>   
>> 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.
>
> [setup]
> name: foo
> version: 1.0
> author: tarek
> long_description: some
>   long description
>   here
>  
> 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
>>
>> 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
>
> Regards
>
> David
>
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090818/57cd3c61/attachment-0001.htm>


More information about the Distutils-SIG mailing list