diff options
| author | PJ Eby <distutils-sig@python.org> | 2006-03-29 23:32:41 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2006-03-29 23:32:41 +0000 |
| commit | 696739a1fc24ccb3ace56a2156b7199f6b85e194 (patch) | |
| tree | 03c589abad3b004b2f73605057cb3e2aaae7b345 /setuptools/dist.py | |
| parent | f4505e41e7c3c4c270c53a4506b3f17556f20f76 (diff) | |
| download | python-setuptools-git-696739a1fc24ccb3ace56a2156b7199f6b85e194.tar.gz | |
Added ``test_loader`` keyword to support custom test loaders.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043430
Diffstat (limited to 'setuptools/dist.py')
| -rw-r--r-- | setuptools/dist.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 8e34f35d..b1ebeb47 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -28,15 +28,15 @@ _Distribution = _get_unpatched(_Distribution) sequence = tuple, list - - - - - - - - - +def check_importable(dist, attr, value): + try: + ep = pkg_resources.EntryPoint.parse('x='+value) + assert not ep.extras + except (TypeError,ValueError,AttributeError,AssertionError): + raise DistutilsSetupError( + "%r must be importable 'module:attrs' string (got %r)" + % (attr,value) + ) def assert_string_list(dist, attr, value): |
