Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 652481275f928c3b7dbd004be7e610cc29c615aa 1 parent bcb88b9
Tres Seaver authored March 28, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  setup.py
5  setup.py
... ...
@@ -1,7 +1,10 @@
1 1
 import sys
2 2
 import os
3 3
 
4  
-from distutils.core import setup
  4
+try:
  5
+    from setuptools import setup
  6
+except ImportError:
  7
+    from distutils.core import setup
5 8
 
6 9
 if 'sdist' in sys.argv:
7 10
     os.system('./admin/makedoc')

0 notes on commit 6524812

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