On Wed, 2012-02-08 at 18:24 +0000, Russel Winder wrote:
[...]
> whereas pypy doesn't execute the script in the same way.  The script in
> question is:
> 
> https://bitbucket.org/scons/scons/src/cdc0f05249c6/bootstrap.py
> 
> I don't immediately see why PyPy would behave different executing this
> script that the CPython 2.7.2 that works fine.  I am increasingly of the
> view that I am looking but not seeing...

Aha...  that is the point, that script is behaving exactly the same in
both cases, I was using the wrong command line.

|> python /home/Checkouts/Mercurial/SCons/bootstrap.py
/usr/bin/python /home/Checkouts/Mercurial/SCons/bootstrap/src/script/scons.py
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
stopServerIfNeedBe(["allPDFs"], [])
scons: done building targets.

|> pypy /home/Checkouts/Mercurial/SCons/bootstrap.py
/home/users/russel/bin.Linux.x86_64/pypy 
/home/Checkouts/Mercurial/SCons/bootstrap/src/script/scons.py
scons: Reading SConscript files ...
ImportError: No module named uno:
  File "/home/users/russel/Work/Courses/Groovy_OneDayWorkshop/SConstruct", line 
21:
    import odfConverterServer
  File "/home/users/russel/lib/Python/lib/python2.7/odfConverterServer.py", 
line 27:
    from PyODFConverter import DEFAULT_OPENOFFICE_PORT , DocumentConverter , 
DocumentConversionException
  File "/home/users/russel/lib/Python/lib/python2.7/PyODFConverter.py", line 40:
    from uno import getComponentContext , systemPathToFileUrl

Now that makes much more sense.  Now I just need to get some packages
into the PyPy tree that are not there yet.

Maciej, Armin, thanks for indirectly pointing me in the right direction.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to