Browse files

Use setuptools, if present.

This change enables usage such as '/path/to/python develop' (i.e.,
installing a checkout into site-packages).  It falls back to stock distutils
if setuptools is not importable.
  • Loading branch information...
1 parent bcb88b9 commit 652481275f928c3b7dbd004be7e610cc29c615aa @tseaver committed Mar 28, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1
@@ -1,7 +1,10 @@
import sys
import os
-from distutils.core import setup
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
if 'sdist' in sys.argv:

0 comments on commit 6524812

Please sign in to comment.