Skip to content
Browse files

Use setuptools, if present.

This change enables usage such as '/path/to/python setup.py 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 tseaver committed Mar 28, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 setup.py
View
5 setup.py
@@ -1,7 +1,10 @@
import sys
import os
-from distutils.core import setup
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
if 'sdist' in sys.argv:
os.system('./admin/makedoc')

0 comments on commit 6524812

Please sign in to comment.
Something went wrong with that request. Please try again.