#! python

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

import distutils
distutils.DEBUG = True

try:
	from Cython.Distutils import build_ext
except:
	print "Cannot find Cython.distutils.   You may not have cython installed."
	print "Look at http://www.cython.org ."
	sys.exit(1)

import os
MyHome = os.environ['HOME']
GPKhome = '/users/gpk'
import numpy as Num
Include_dirs = [ '.', 'lib', Num.get_include(),
			os.path.join(os.environ['HOME'], 'local', 'include') ]
LibDirs = [ '.', os.path.join(MyHome, 'local', 'lib'),
		os.path.join(GPKhome, 'local', 'lib'),
		'/usr/local/lib64', '/usr/local/lib' ]

setup(name = "predict_next", version = "0.1.1",
	description = "Syllable-by-syllable properties prediction",
	author = "Greg Kochanski",
	url = "http://kochanski.org/gpk",
	author_email = "gpk@kochanski.org",
	packages = ["predict_next_s"],
	package_dir = {'predict_next_s': 'lib'},
	scripts = [ 'bin/optimize_pn.py'
			],
	ext_modules=[
#		Extension("sloppy_oscillator.delay4", ["lib/delay4.pyx"],
#				include_dirs = Include_dirs,
#				library_dirs = LibDirs,
#				libraries = ['gpk'],
#				language = 'c++'
#				),
		],
	cmdclass = {'build_ext': build_ext},
	license = 'GPL2',
	keywords = "phonetics speech computational linguistics basic library python science optimize",
	platforms = "All",
	classifiers = [
		'License :: OSI Approved :: GNU General Public License (GPL)',
		'Operating System :: OS Independent',
		'Development Status :: 3 - Alpha',
		'Topic :: Scientific/Engineering',
		'Intended Audience :: Science/Research',
		'Programming Language :: Python',
		# X11
		'Operating System :: OS Independent',
		'Programming Language :: Python',
		],
	long_description = """Read the paper."""
	)

