Lines 52-57
class Command:
Link Here
|
52 |
""" |
52 |
""" |
53 |
# late import because of mutual dependence between these classes |
53 |
# dist should quack like a Distribution (duck-typing avoids a |
54 |
from distutils.dist import Distribution |
54 |
# circular dependency and hopefully ameliorates trouble due to |
55 |
|
55 |
# setuptools having monkey patched distutils modules). |
56 |
if not isinstance(dist, Distribution): |
56 |
if not hasattr(dist, 'get_requires'): |
57 |
raise TypeError, "dist must be a Distribution instance" |
57 |
raise TypeError, "dist must be a Distribution instance" |