# $FreeBSD: ports/devel/newt/files/setup.py,v 1.2 2002/05/04 17:27:55 pat Exp $
import os
from distutils.core import setup, Extension

LOCALBASE = os.environ['LOCALBASE']
PREFIX = os.environ['PREFIX']

setup ( name = 'newt',
	version = '0.50.33',
	description = 'Python interface to Newt module',
	py_modules = ['snack'],
	ext_modules = [ Extension(
       		name='_snack',
		sources=['snackmodule.c'],
		include_dirs=['.', LOCALBASE+'/include', PREFIX+'/include'],
		library_dirs=['.', LOCALBASE+'/lib', PREFIX+'/lib'],
		libraries=['newt', 'popt', 'slang', 'ncurses']
	)])
