Skip to content

Commit

Permalink
Import setuptools if it's available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Darnell committed Feb 3, 2010
1 parent ae1ed23 commit a34dc42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit a34dc42

Please sign in to comment.