From c7169820a21a0fa778e2c06ebc5786b970d60606 Mon Sep 17 00:00:00 2001 From: asapo Date: Sun, 9 Jun 2013 19:37:34 +0900 Subject: [PATCH] Do not call use_setuptools --- setup.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 770d09f..601b6dd 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,15 @@ # python setup.py sdist --formats=gztar -import ez_setup -ez_setup.use_setuptools() import os import sys import platform -from setuptools import setup, Extension + +try: + from setuptools import setup, Extension +except ImportError: + from distutils.core import setup, Extension + import glob try: import Cython.Compiler.Main as cython_compiler @@ -93,4 +96,4 @@ This library is faster than chardet. ext_modules = [ cchardet_module ], -) \ No newline at end of file +)