From 49dfb4a17843282fa7359247b68d857d737847fd Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Thu, 21 Aug 2008 18:36:39 +0000 Subject: 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 --- setuptools/depends.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'setuptools/depends.py') 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') -- cgit v1.2.1