Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-30 Thread Armin Rigo
Hi Tom, On 30 April 2015 at 00:21, t...@twhanson.com wrote: 1) Am I correct in assuming that these are imports? Yes. 2) Can these be eliminated? These opens are problematic in the absence of a file system. Try running pypy with the -s option. Likely, it doesn't remove them all; you have

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-28 Thread Armin Rigo
Hi Tom, On 28 April 2015 at 19:56, t...@twhanson.com wrote: Correction: non-functional without the *peer* class VirtualizedSandboxedProc Modern PyPy versions try to get some environ variables, at least as documented in rpython/doc/logging.rst. It makes the do_ll_os__ll_os_getenv() method

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-28 Thread tom
Correction: non-functional without the *peer* class VirtualizedSandboxedProc On Tue, 28 Apr 2015 09:33:01 -0600, t...@twhanson.com wrote: I'm confused about the relationship between SimpleIOSandboxedProc and VirtualizedSandboxedProc.   Looking at pypy_interact.py I see that it is

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-28 Thread tom
I'm confused about the relationship between SimpleIOSandboxedProc and VirtualizedSandboxedProc.   Looking at pypy_interact.py I see that it is multiply dependent from SimpleIOSandboxedProc and VirtualizedSandboxedProc.  I expected that I'd be able to drop VirtualizedSandboxedProc and tweak the

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-27 Thread Armin Rigo
Hi Tom, On 27 April 2015 at 18:10, t...@twhanson.com wrote: We can't hard-code the scripts into the binary becuase their purpose is to adapt behavior to new configurations. Because of this the scripts will be read from an external source and then executed. This is what makes the the

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-25 Thread tom
Maciej,   Thanks for the idea.  I played with the sandboxed version and it looks like it has potential.    I searched the web for a C/C++ version of the controller but with no luck.  I saw questions about it and interest expressed but couldn't find anyone who had actually built one.  Do you (or

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-25 Thread Armin Rigo
Hi Tom, On 25 April 2015 at 01:32, Maciej Fijalkowski fij...@gmail.com wrote: On Sat, Apr 25, 2015 at 1:13 AM, t...@twhanson.com wrote: Thanks for the idea. I played with the sandboxed version and it looks like it has potential. It's not necessarily the only option. A sandboxed process

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-24 Thread Maciej Fijalkowski
On Sat, Apr 25, 2015 at 1:13 AM, t...@twhanson.com wrote: Maciej, Thanks for the idea. I played with the sandboxed version and it looks like it has potential. I searched the web for a C/C++ version of the controller but with no luck. I saw questions about it and interest expressed but

Re: [pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-24 Thread Maciej Fijalkowski
pypy generally needs to find a bunch of files for it's standard library. I would suggest trying something a-la the sandboxed version where all the external calls go via a special proxy that you can write in C++. it's a bit of effort though. What are you trying to achieve if you have no filesystem?

[pypy-dev] How to embed PyPy when there's no filesystem?

2015-04-24 Thread tom
I'm evaluating PyPy for use in an application where it will be running in an RTOS (Greenhills Integrity) which is congifured without a file system at runtime.  The rest of the application is C/C++.   Is there a way to build PyPy for this environment?  The issue I see is that