muxuezi / pymetabiosis

A way to use CPython modules on PyPy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyMetabiosis

A bridge between PyPy and CPython that works by embedding CPython, its main purpose it to allow you to use any CPython module on PyPy (including C extensions).

  • PyMetabiosis tries to link with the python command available on $PATH, however you can override this (if you want to use a virtualenv and/or if "python" points to PyPy) by setting the PYTHON_EMBED environment variable to a virtualenv (or /usr)
  • Use pymetabiosis.module.import_module to import cpython modules on PyPy

Installation

Before pip installing the package, you must set the PYTHON_EMBED environment variable to a Python virtualenv (or /usr) and then do pip install pymetabiosis

About

A way to use CPython modules on PyPy

License:MIT License


Languages

Language:Python 100.0%