[Distutils] Static metadata using setup.cfg

David Lyon david.lyon at preisshare.net
Tue Aug 18 04:51:28 CEST 2009


On Tue, 18 Aug 2009 05:11:28 +0300, Alex Grönholm
<alex.gronholm at nextday.fi> wrote:

> How would you declare dependencies? Remember that the list of 
> dependencies depends on at least two variables: Python version and
> platform.

hmm.. they're the most important of all...

Perphaps...

"""
[setup]
name: foo
version: 1.0
author: tarek
long_description: some
  long description
  here

url: http://example.com

[dependencies]
dependency1=numpy,>X.Y
dependency2=lxml,E.F

[dependency_linux2_python2.5]
dependency1=gtkwinhelper,>S.T

[dependency_mac_python2.4]
dependency1=hotplug
"""

The operating system name should match one of the
os.name() or sys.platform() functions.. 

David



More information about the Distutils-SIG mailing list