Annotation of python/pyvtk/setup.py, revision 1.5

1.1       pearu       1: #!/usr/bin/env python
                      2: 
1.2       pearu       3: import os
                      4: import sys
1.1       pearu       5: from distutils.core import setup
                      6: 
1.2       pearu       7: version_file = os.path.join('lib','__version__.py')
1.4       pearu       8: if 1 or not os.path.exists(version_file):
1.2       pearu       9:     major_version = 0
1.4       pearu      10:     minor_version = 4
1.2       pearu      11:     execfile(os.path.join('tools','get_revision.py'))
                     12:     __version__='%d.%d.%d'%(major_version,minor_version,revision_version)
1.3       pearu      13:     for l in ['lib','lib152']:
                     14:         f = open(os.path.join(l,'__version__.py'),'w')
                     15:         f.write('__version__ = "%s"\n'%(__version__))
                     16:         f.close()
1.2       pearu      17: execfile(version_file)
                     18: 
                     19: 
1.5     ! pearu      20: if sys.version[:3]>='2.3':
        !            21:     config = dict(\
        !            22:         download_url='http://cens.ioc.ee/projects/pyvtk/rel-0.x/PyVTK-0.latest.tar.gz',
        !            23:         keywords = ['VTK'],
        !            24:         classifiers=[
        !            25:         'Development Status :: 4 - Beta',
        !            26:         'Intended Audience :: Science/Research',
        !            27:         'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
        !            28:         'Natural Language :: English',
        !            29:         'Operating System :: OS Independent',
        !            30:         'Programming Language :: Python',
        !            31:         'Topic :: Scientific/Engineering :: Visualization',
        !            32:         ])
        !            33: else:
        !            34:     config = {}
        !            35: 
        !            36: print "PyVTK Version",__version__
1.1       pearu      37: setup (name = "PyVTK",
1.2       pearu      38:        version = __version__,
1.1       pearu      39:        description = "PyVTK - tools for manipulating VTK files in Python",
                     40:        author = "Pearu Peterson",
                     41:        author_email = "pearu@cens.ioc.ee",
1.5     ! pearu      42:        maintainer = "Pearu Peterson",
        !            43:        maintainer_email = "pearu@cens.ioc.ee",
1.1       pearu      44:        licence = "LGPL",
1.5     ! pearu      45:        long_description= """\
        !            46: PyVTK provides tools for manipulating VTK (Visualization Toolkit)
        !            47: files in Python:
        !            48:   VtkData - create VTK files from Python / read VTK files to Python.""",
1.2       pearu      49:        url = "http://cens.ioc.ee/projects/pyvtk/",
1.1       pearu      50:        packages = ['pyvtk'],
1.2       pearu      51:        package_dir = {'pyvtk':{'2':'lib','1':'lib152'}[sys.version[0]]}
1.1       pearu      52:        )
                     53: 
1.5     ! pearu      54: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>