Debian Codegraph @

lib_pypy/_testmultiphase_build.py

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