Skip to content

Commit c89f861

Browse files
committed
use setuptools if present
1 parent 8ee6ad1 commit c89f861

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525

2626
import sys
27-
from distutils.core import setup, Extension
27+
try:
28+
from setuptools import setup, Extension
29+
except ImportError:
30+
from distutils.core import setup, Extension
2831

2932
version = '0.5.2'
3033
long_description = """

0 commit comments

Comments
 (0)