Package translate :: Package misc :: Module setup

[hide private]
[frames] | no frames]

# Source Code for Module translate.misc.setup

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3
     4  from distutils.core import setup, Extension
     5  import os
     6
     7 -class csvExtension(Extension):
     8 -  def __init__(self, source_dir):
     9      Extension.__init__(self, '_csv',
    10                      sources = [os.path.join(source_dir, '_csv.c')])
    11
    12  csvModule = csvExtension('.')
    13
    14  if __name__ == "__main__":
    15    setup(name="_csv",version="2.3",description="csv module",py_modules=['csv'],ext_modules=[csvModule])
    16