diff options
author | Andy Dustman <farcepest@gmail.com> | 2013-08-18 14:19:53 -0700 |
---|---|---|
committer | Andy Dustman <farcepest@gmail.com> | 2013-08-18 14:19:53 -0700 |
commit | 563ed107332359dc1506a25d4b14862c1f5a8002 (patch) | |
tree | 388d711f29ab85e65beb17aadb36dc01d3e3e1a8 | |
parent | 63ab17980da8b31ca02ad31236420ed57006e315 (diff) | |
parent | a050932372d7b94e8606caa0f242dd2ff4b77cfe (diff) | |
download | mysqldb1-563ed107332359dc1506a25d4b14862c1f5a8002.tar.gz |
Merge pull request #18 from tseaver/do_not_force_distribute
If setuptools is importable, don't force use of 'distribute'.
-rw-r--r-- | setup.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3,8 +3,11 @@ import os import sys -from distribute_setup import use_setuptools -use_setuptools() +try: + import setuptools +except ImportError: + from distribute_setup import use_setuptools + use_setuptools() from setuptools import setup, Extension if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000: |