diff options
author | PJ Eby <distutils-sig@python.org> | 2008-08-21 18:36:39 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2008-08-21 18:36:39 +0000 |
commit | 49dfb4a17843282fa7359247b68d857d737847fd (patch) | |
tree | 3579cf01b3615a66fcda0fd5782dd69c77352160 /setuptools/depends.py | |
parent | 2d3007539b9ed75f8f5d5a35284640a03235f422 (diff) | |
download | external_python_setuptools-49dfb4a17843282fa7359247b68d857d737847fd.tar.gz external_python_setuptools-49dfb4a17843282fa7359247b68d857d737847fd.tar.bz2 external_python_setuptools-49dfb4a17843282fa7359247b68d857d737847fd.zip |
Fix http://bugs.python.org/setuptools/issue31 (backport from trunk)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065948
Diffstat (limited to 'setuptools/depends.py')
-rw-r--r-- | setuptools/depends.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/setuptools/depends.py b/setuptools/depends.py index 20e5cecb..4b7b3437 100644 --- a/setuptools/depends.py +++ b/setuptools/depends.py @@ -204,7 +204,6 @@ def get_module_constant(module, symbol, default=-1, paths=None): def extract_constant(code,symbol,default=-1): - """Extract the constant value of 'symbol' from 'code' If the name 'symbol' is bound to a constant value by the Python code @@ -237,10 +236,11 @@ def extract_constant(code,symbol,default=-1): return const else: const = default - - - - - + +if sys.platform.startswith('java') or sys.platform == 'cli': + # XXX it'd be better to test assertions about bytecode instead... + del extract_constant, get_module_constant + __all__.remove('extract_constant') + __all__.remove('get_module_constant') |