1 from distutils
.core
import setup
2 from distutils
.errors
import DistutilsError
3 from distutils
.command
import config
, build
, sdist
5 from sys
import version
, hexversion
7 class Sdist(sdist
.sdist
):
8 default_format
= {'posix': 'bztar'}
10 class Config(config
.config
):
12 if hexversion
< 0x20400f0:
14 'Python interpreter is too old: python >= 2.4.0 ' +
15 'needed, %s detected' % version
[:5])
16 if hexversion
< 0x20500f0:
18 __import__('elementtree.ElementTree')
21 'ElementTree module needed on Python 2.4.x: install it first')
23 class Build(build
.build
):
25 Config(self
.distribution
).run()
32 description
='Radio-Canada Video-on-Demand web service client',
33 url
='http://radcan.googlepages.com/index.html',
34 author
='Sylvain Fourmanoit',
35 author_email
='syfou@users.sourceforge.net',
37 py_modules
=['radcan'],