[pypy-dev] How to use interperter level code from a module for app level code in another module

Amaury Forgeot d'Arc amauryfa at gmail.com
Tue Jun 9 11:57:42 CEST 2015


2015-06-09 11:51 GMT+02:00 Yicong Huang <hengha.mao at gmail.com>:

> "I guess it's because __pypy__ is always enabled, but other modules can
> be enabled or disabled"
>
> How to enable the module?
> We had tried "spaceconfig", but it only worked for writing tests.
>

Again, how are you running PyPy?
If it is the compiled binary, you need to pass --withmod-select at
translation time.
Same thing, if you started the (slow) untranslated bin/pyinteractive.py


>
> On Tue, Jun 9, 2015 at 5:38 PM, Armin Rigo <arigo at tunes.org> wrote:
>
>> Hi,
>>
>> On 9 June 2015 at 11:34, Yicong Huang <hengha.mao at gmail.com> wrote:
>> > import select     =>  ImportError: No module named select
>> > import pypy.module.select     =>ImportError: No module named pypy
>> >
>> > But __pypy__ module is able to be imported.
>>
>> I guess it's because __pypy__ is always enabled, but other modules can
>> be enabled or disabled (for example using "spaceconfig" if you're
>> writing tests in the same style as ours).
>>
>>
>> A bientôt,
>>
>> Armin.
>>
>
>


-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150609/3cc8043e/attachment.html>


More information about the pypy-dev mailing list