Skip to content

Commit a595fd7

Browse files
committed
setup.py: use setuptools if available, but tolerate it being missing
1 parent d03c72a commit a595fd7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env python
2-
from distutils.core import setup, Command
2+
try:
3+
# try setuptools, so devs can run bdist_wheel
4+
from setuptools import setup, Command
5+
except ImportError:
6+
# but most users really don't require it
7+
from distutils.core import setup, Command
38

49
import versioneer
510
versioneer.versionfile_source = "ecdsa/_version.py"

0 commit comments

Comments
 (0)