[pypy-svn] r53024 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Thu Mar 27 22:13:43 CET 2008
Author: antocuni
Date: Thu Mar 27 22:13:40 2008
New Revision: 53024
Modified:
pypy/dist/pypy/translator/cli/query.py
Log:
mono 1.9 gives a different string as the assembly name of pypylib,
need to put a workaround here. This fixes translation.
Modified: pypy/dist/pypy/translator/cli/query.py
==============================================================================
--- pypy/dist/pypy/translator/cli/query.py (original)
+++ pypy/dist/pypy/translator/cli/query.py Thu Mar 27 22:13:40 2008
@@ -14,6 +14,8 @@
Namespaces = set()
mscorlib = 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
pypylib = 'pypylib, Version=0.0.0.0, Culture=neutral'
+pypylib2 = 'pypylib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' # this is for mono 1.9
+
#_______________________________________________________________________________
# This is the public interface of query.py
@@ -147,7 +149,7 @@
if self.Assembly == mscorlib:
assembly = '[mscorlib]'
- elif self.Assembly == pypylib:
+ elif self.Assembly in (pypylib, pypylib2):
assembly = '[pypylib]'
else:
assert False, 'TODO: support external assemblies'
More information about the pypy-svn
mailing list