Attempt to use setuptools if possible and fall back to normal distutils if

setuptools is not found or installed.
This commit is contained in:
Anthony Tuininga 2008-05-29 13:48:14 +00:00
parent e7dcdff522
commit d11dcba0ea
1 changed files with 6 additions and 4 deletions

View File

@ -20,12 +20,14 @@ import distutils.util
import os
import sys
from distutils.core import setup
from distutils.errors import DistutilsSetupError
from distutils.extension import Extension
# if setuptools is desired, uncomment this line
#from setuptools import setup, Extension
# if setuptools is detected, use it to add support for eggs
try:
from setuptools import setup, Extension
except:
from distutils.core import setup
from distutils.extension import Extension
# define build constants
BUILD_VERSION = "4.4a1"