Skip to content

Commit 221dd82

Browse files
committed
Use setuptools, with fallback to distutils
This will allow `setup.py bdist_wheel` when setuptools is available.
1 parent 48d6af5 commit 221dd82

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
import sys
44

5-
from distutils.core import setup
6-
from distutils.extension import Extension
5+
try:
6+
from setuptools import setup, Extension
7+
except ImportError:
8+
from distutils.core import setup
9+
from distutils.extension import Extension
710

811
import _version
912

0 commit comments

Comments
 (0)