#!/usr/local/bin/python # # Distutils setup script for the Natural Language Toolkit # # Copyright (C) 2001 University of Pennsylvania # Author: Edward Loper # URL: # For license information, see LICENSE.TXT # # $Id: setup.py,v 1.15 2004/07/19 11:32:41 stevenbird Exp $ from distutils.core import setup, Extension import nltk # Should we include the C/C++ extensions? USE_EXTENSIONS = 0 ############################################# ## Extension modules EXTENSIONS = [ Extension('nltk._ctoken', sources=['extensions/ctoken.c']), ] if not USE_EXTENSIONS: EXTENSIONS = None setup( ############################################# ## Distribution Metadata name = "nltk", description = "Natural Language Toolkit", version = nltk.__version__, url = nltk.__url__, long_description = nltk.__longdescr__, license = nltk.__license__, keywords = nltk.__keywords__, maintainer = nltk.__maintainer__, maintainer_email = nltk.__maintainer_email__, author = nltk.__author__, author_email = nltk.__author__, # platforms = , ############################################# ## Package List packages = ['nltk', 'nltk.classifier', 'nltk.clusterer', 'nltk.corpus', 'nltk.draw', 'nltk.feature', 'nltk.hmm', 'nltk.parser', 'nltk.stemmer', 'nltk.tagger', 'nltk.test', 'nltk.tokenizer', 'nltk.tokenreader'], ############################################# ## Extension Modules ext_modules = EXTENSIONS, )