setup.py
branchpy33
changeset 40 cd23b3db03c5
parent 22 d1a26617d06b
child 49 054a847970b7
--- a/setup.py	Fri Mar 14 17:20:55 2014 +0000
+++ b/setup.py	Fri Mar 14 18:06:02 2014 +0000
@@ -9,7 +9,10 @@
 		pkgDir=os.getcwd()
 	elif not os.path.isabs(pkgDir):
 		pkgDir=os.path.abspath(pkgDir)
-	from distutils.core import setup, Extension
+	try:
+		from setuptools import setup, Extension
+	except ImportError:
+		from distutils.core import setup, Extension
 
 	def raiseConfigError(msg):
 		import exceptions