1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
"""
This will (re)create the _testmultiphase c-extension module. Unlike _testcapi,
the extension cannot be wrapped with a _testmultiphase.py module since
test.importlib explicitly does a c-extension import
"""
import imp
import os
import shutil
try:
import cpyext
except ImportError:
raise RuntimeError("must have cpyext")
import _pypy_testcapi
cfile = '_testmultiphase.c'
thisdir = os.path.dirname(__file__)
output_dir = _pypy_testcapi.get_hashed_dir(os.path.join(thisdir, cfile))
_pypy_testcapi.compile_shared('_testmultiphase.c', '_testmultiphase', thisdir)
|