Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Import setuptools if it's available.

  • Loading branch information...
commit a34dc422e25fbfd8704e652ff787e87a385f2f6d 1 parent ae1ed23
Ben Darnell authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 setup.py
6 setup.py
View
@@ -16,6 +16,12 @@
import distutils.core
import sys
+# Importing setuptools adds some features like "setup.py develop", but
+# it's optional so swallow the error if it's not there.
+try:
+ import setuptools
+except ImportError:
+ pass
# Build the epoll extension for Linux systems with Python < 2.6
extensions = []
Please sign in to comment.
Something went wrong with that request. Please try again.