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

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.1       pearu      20: setup (name = "PyVTK",
1.2       pearu      21:        version = __version__,
1.1       pearu      22:        description = "PyVTK - tools for manipulating VTK files in Python",
                     23:        author = "Pearu Peterson",
                     24:        author_email = "pearu@cens.ioc.ee",
                     25:        licence = "LGPL",
                     26:        long_description= """
                     27:        PyVTK provides tools for manipulating VTK (Visualization Toolkit)
                     28:        files in Python:
1.2       pearu      29: 
1.4     ! pearu      30:        VtkData - create VTK files from Python / read VTK files to Python.
1.1       pearu      31:        """,
1.2       pearu      32:        url = "http://cens.ioc.ee/projects/pyvtk/",
1.1       pearu      33:        packages = ['pyvtk'],
1.2       pearu      34:        package_dir = {'pyvtk':{'2':'lib','1':'lib152'}[sys.version[0]]}
1.1       pearu      35:        )
                     36: 
1.2       pearu      37: print "PyVTK Version",__version__

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