Skip to content

Commit c18ba75

Browse files
committed
setup.py: support both distutils and setuptools
setuptools is preferred if installed. allows running in 'develop' mode (e.g. python setup.py develop)
1 parent e241937 commit c18ba75

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
MANIFEST
66
build
77
dist
8+
*.egg-info

Diff for: setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"""
2525
Standard build script.
2626
"""
27-
28-
import sys
29-
import os
30-
from distutils.core import setup
27+
try:
28+
from setuptools import setup
29+
except ImportError:
30+
from distutils.core import setup
3131

3232

3333
setup(name = "github",

0 commit comments

Comments
 (0)