<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
David Lyon kirjoitti:
<blockquote cite="mid:531f0bc5ca644a47380bb6fc8add3dbf@preisshare.net"
type="cite">
<pre wrap="">On Mon, 17 Aug 2009 09:34:56 +0200, Tarek Ziadé <a class="moz-txt-link-rfc2396E" href="mailto:ziade.tarek@gmail.com"><ziade.tarek@gmail.com></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">We can use the [global] section of the setup.cfg file to describe them.
</pre>
</blockquote>
<pre wrap=""><!---->
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: <a class="moz-txt-link-freetext" href="http://example.com">http://example.com</a>
And then...
</pre>
</blockquote>
How would you declare dependencies? Remember that the list of
dependencies depends on at least two variables: Python version and
platform.<br>
<blockquote cite="mid:531f0bc5ca644a47380bb6fc8add3dbf@preisshare.net"
type="cite">
<pre wrap=""></pre>
<blockquote type="cite">
<pre wrap="">"""
from distutils.core import setup
setup()
"""
</pre>
</blockquote>
<pre wrap=""><!---->
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 - <a class="moz-txt-link-abbreviated" href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/distutils-sig">http://mail.python.org/mailman/listinfo/distutils-sig</a>
</pre>
</blockquote>
<br>
</body>
</html>