python: Use setuptools if avilable

This commit is contained in:
Richo Healey 2015-03-22 22:17:59 -07:00
parent 7c3fd911ee
commit 3c862d5c11

View File

@ -10,7 +10,10 @@ from distutils import log
from distutils import dir_util
from distutils.command.build_clib import build_clib
from distutils.command.sdist import sdist
from distutils.core import setup
try:
from setuptools import setup
except ImportError:
from distutils import setup
from distutils.sysconfig import get_python_lib
# prebuilt libraries for Windows - for sdist