#!/usr/bin/env python

"""Setup script for the SPECFILE module distribution."""

import os, sys, glob

from distutils.core import setup
from distutils.extension import Extension

srcfiles = [ 'sfheader','sfinit','sflists','sfdata','sfindex',
             'sflabel' ,'sfmca', 'sftools','specfile_py']

sources = [] 
for file in srcfiles:
  sources.append('src/'+file+'.c')
                                                                                               
setup (
        name         = "specfile",
        version      = "3.0",
        description  = "module to read SPEC datafiles",
        author       = "BLISS Group",
        author_email = "rey@esrf.fr",
        url          = "http://www.esrf.fr/computing/bliss/",

        # Description of the modules and packages in the distribution

        extra_path   = 'Pybliss',
        ext_modules  = [
                       Extension(
                            name          = 'specfile',
                            sources       = sources,
                            include_dirs  = ['include'],
                       ),
       ],
)

print """Python module ready.
 If you want to generate C libraries:
 Find a Makefile ready on the directory \"src\"
 Minor changes may be needed ( customized for Linux,HP-UX and Solaris)
"""
