Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c18ba759ea9eca5830c05c23c00fac2c04fa3597 1 parent e241937
Justin Riley jtriley authored
Showing with 5 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +4 −4 setup.py
1  .gitignore
View
@@ -5,3 +5,4 @@
MANIFEST
build
dist
+*.egg-info
8 setup.py
View
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.