If setuptools is importable, don't force use of 'distribute'.

Allows use of post-merge setuptools 0.7.
This commit is contained in:
Tres Seaver
2013-06-14 13:34:07 -04:00
parent 63ab17980d
commit a050932372

View File

@ -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: