Hi,

I tried to write a simple test module in pypy:
1. Make a new directory in pypy/modules, and put the code there.
2. Add the new module name in pypyoption.py and built the new libpypy-c.so

The reason that I put the module in pypy/modules is I tried to make the
module build into libpypy-c.so. :)

After that, in pypy console, I am able to import the module and run
module's function.
However, when I tried to import the module in python script, I met the
errors:

pypy test.py

Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "test.py", line 1, in <module>
    import pypytest
ImportError: No module named pypytest

Any steps I missed to make the buitin module visible?
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to