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 +)