From 62254ca5736bb6f6dca457c46f21cf5da96bc9d6 Mon Sep 17 00:00:00 2001 From: Mac Gaulin Date: Tue, 16 Aug 2016 14:43:05 -0500 Subject: [PATCH] Add default preference for setuptools Makes it possible to ``setup.py develop`` --- setup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ee62651..c89a3ad 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,12 @@ # URL: # For license information, see LICENSE.TXT -from distutils.core import setup + +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + import nltk setup( @@ -17,7 +22,7 @@ ## Distribution Metadata name = "nltk_contrib", description = "NLTK-Contrib", - + version = nltk.__version__, url = nltk.__url__, long_description = nltk.__longdescr__, @@ -28,7 +33,7 @@ author = nltk.__author__, author_email = nltk.__author__, # platforms = , - + ############################################# ## Package List packages = ['nltk_contrib',