Browse files

setup.py: support both distutils and setuptools

setuptools is preferred if installed. allows running in 'develop' mode
(e.g. python setup.py develop)
  • Loading branch information...
1 parent e241937 commit c18ba759ea9eca5830c05c23c00fac2c04fa3597 @jtriley jtriley committed Jul 8, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +4 −4 setup.py
View
1 .gitignore
@@ -5,3 +5,4 @@
MANIFEST
build
dist
+*.egg-info
View
8 setup.py
@@ -24,10 +24,10 @@
"""
Standard build script.
"""
-
-import sys
-import os
-from distutils.core import setup
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
setup(name = "github",

0 comments on commit c18ba75

Please sign in to comment.