Skip to content

Commit

Permalink
Avoid dependency cycle by using distutils when setuptools isn't avail…
Browse files Browse the repository at this point in the history
…able (benjaminp#184)

* Use distutils instead of setuptools to avoid dependency cycle.

* Change distutils requirement to fallback.
  • Loading branch information
tgamblin authored and benjaminp committed Mar 9, 2017
1 parent 89ab315 commit 3280aa8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

from __future__ import with_statement

from setuptools import setup
# Six is a dependency of setuptools, so using setuptools creates a
# circular dependency when building a Python stack from source. We
# therefore allow falling back to distutils to install six.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

import six

Expand Down

0 comments on commit 3280aa8

Please sign in to comment.