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

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',
1.6     ! pearu      32:         ],
        !            33:         platforms = 'All')
1.5       pearu      34: else:
                     35:     config = {}
                     36: 
                     37: print "PyVTK Version",__version__
1.1       pearu      38: setup (name = "PyVTK",
1.2       pearu      39:        version = __version__,
1.1       pearu      40:        description = "PyVTK - tools for manipulating VTK files in Python",
                     41:        author = "Pearu Peterson",
                     42:        author_email = "pearu@cens.ioc.ee",
1.5       pearu      43:        maintainer = "Pearu Peterson",
                     44:        maintainer_email = "pearu@cens.ioc.ee",
1.6     ! pearu      45:        license = "LGPL",
1.5       pearu      46:        long_description= """\
                     47: PyVTK provides tools for manipulating VTK (Visualization Toolkit)
                     48: files in Python:
                     49:   VtkData - create VTK files from Python / read VTK files to Python.""",
1.2       pearu      50:        url = "http://cens.ioc.ee/projects/pyvtk/",
1.1       pearu      51:        packages = ['pyvtk'],
1.6     ! pearu      52:        package_dir = {'pyvtk':{'2':'lib','1':'lib152'}[sys.version[0]]},
        !            53:        **config
1.1       pearu      54:        )
                     55: 
1.5       pearu      56: 

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