Home
last modified time | relevance | path

Searched refs:cache_from_source (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py569 self.assertEqual(self.util.cache_from_source(path, optimization=''),
576 self.util.cache_from_source('whatever.py')
583 self.assertEqual(self.util.cache_from_source(path, optimization=''),
592 self.assertEqual(self.util.cache_from_source(path, False),
593 self.util.cache_from_source(path, optimization=1))
594 self.assertEqual(self.util.cache_from_source(path, True),
595 self.util.cache_from_source(path, optimization=''))
599 self.util.cache_from_source(path, False)
601 self.util.cache_from_source(path, True)
606 self.assertEqual(self.util.cache_from_source(path, optimization=''),
[all …]
Dtest_pkg_import.py9 from importlib.util import cache_from_source
42 compiled_path = cache_from_source(self.module_path)
Dtest_api.py253 cached = self.util.cache_from_source(path)
274 cached = self.util.cache_from_source(init_path)
304 cached = self.util.cache_from_source(bad_path)
333 cached = self.util.cache_from_source(init_path)
Dtest_spec.py70 self.cached = self.util.cache_from_source(self.path)
203 expected = self.util.cache_from_source(self.path)
242 self.cached = self.util.cache_from_source(self.path)
502 self.cached = self.util.cache_from_source(self.path)
Dtest_abc.py723 self.bytecode_path = self.util.cache_from_source(self.path)
769 self.cached = self.util.cache_from_source(self.path)
908 bytecode_path = self.util.cache_from_source(self.path)
/external/python/cpython3/Lib/test/
Dtest_compileall.py36 return importlib.util.cache_from_source(script, optimization=opt)
55 self.bc_path = importlib.util.cache_from_source(self.source_path)
59 self.bc_path2 = importlib.util.cache_from_source(self.source_path2)
172 cached = importlib.util.cache_from_source(self.source_path,
175 cached2 = importlib.util.cache_from_source(self.source_path2,
178 cached3 = importlib.util.cache_from_source(self.source_path3,
227 pyc_filename = importlib.util.cache_from_source(source)
252 modcode = importlib.util.cache_from_source(mod)
281 bc = importlib.util.cache_from_source(script)
300 bc = importlib.util.cache_from_source(script)
[all …]
Dtest_py_compile.py59 self.cache_path = importlib.util.cache_from_source(self.source_path)
139 importlib.util.cache_from_source(bad_coding)))
160 cache_path = importlib.util.cache_from_source(weird_path)
226 self.cache_path = importlib.util.cache_from_source(self.source_path)
Dtest_imp.py181 imp.cache_from_source(temp_mod_name + '.py'))
431 self.assertEqual(imp.cache_from_source(path, True), expect)
Dtest_runpy.py341 "__cached__": importlib.util.cache_from_source(mod_fname),
546 "__cached__": importlib.util.cache_from_source(mod_fname),
Dtest_reprlib.py266 len(importlib.util.cache_from_source("x.py")) - len("x.py"))
/external/python/cpython3/Tools/importbench/
Dimportbench.py68 assert not os.path.exists(imp.cache_from_source(mapping[name]))
83 bytecode_path = imp.cache_from_source(module.__file__)
111 os.unlink(imp.cache_from_source(mapping[name]))
113 assert not os.path.exists(imp.cache_from_source(mapping[name]))
124 os.unlink(imp.cache_from_source(module.__file__))
144 assert os.path.exists(imp.cache_from_source(mapping[name]))
/external/llvm-project/polly/lib/External/isl/
Dpy-compile133 py_compile.compile(filepath, imp.cache_from_source(filepath), path)
157 py_compile.compile(filepath, imp.cache_from_source(filepath, False), path)
/external/python/cpython3/Lib/test/test_import/
D__init__.py370 compiled = importlib.util.cache_from_source(source)
527 cached_path = importlib.util.cache_from_source(path)
545 cached_path = importlib.util.cache_from_source(path)
560 cached_path = importlib.util.cache_from_source(path)
597 os.rename(importlib.util.cache_from_source(path), bytecode_only)
619 compiled_name = importlib.util.cache_from_source(file_name)
859 pyc_path = importlib.util.cache_from_source(self.source)
875 pyc_path = importlib.util.cache_from_source(self.source)
885 pyc_file = importlib.util.cache_from_source(self.source)
914 pyc_file = importlib.util.cache_from_source(TESTFN + '.py')
[all …]
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py187 self.assertEqual(self.util.cache_from_source(file_path),
191 pycache = os.path.dirname(self.util.cache_from_source(file_path))
201 compiled = self.util.cache_from_source(source)
245 pyc = self.util.cache_from_source(source)
277 pyc = self.util.cache_from_source(source)
301 pyc = self.util.cache_from_source(source)
332 pyc = self.util.cache_from_source(source)
393 bytecode_path = self.util.cache_from_source(mapping[name])
641 bytecode_path = self.util.cache_from_source(mapping['_temp'])
659 bytecode_path = self.util.cache_from_source(mapping['_temp'])
/external/python/cpython3/Lib/distutils/tests/
Dtest_install_lib.py47 pyc_file = importlib.util.cache_from_source('foo.py', optimization='')
48 pyc_opt_file = importlib.util.cache_from_source('foo.py',
/external/python/cpython3/Lib/
Dpy_compile.py129 cfile = importlib.util.cache_from_source(file,
132 cfile = importlib.util.cache_from_source(file)
Dimp.py72 def cache_from_source(path, debug_override=None): function
88 return util.cache_from_source(path, debug_override)
Dcompileall.py210 cfile = (importlib.util.cache_from_source(
214 cfile = importlib.util.cache_from_source(fullname)
/external/python/cpython3/Lib/distutils/command/
Dinstall_lib.py168 bytecode_files.append(importlib.util.cache_from_source(
171 bytecode_files.append(importlib.util.cache_from_source(
Dbuild_py.py316 outputs.append(importlib.util.cache_from_source(
319 outputs.append(importlib.util.cache_from_source(
/external/ply/ply/test/
Dtestlex.py20 from importlib.util import cache_from_source
23 cache_from_source = None variable
32 fullpath = cache_from_source(filename, optimization=optimization)
34 fullpath = cache_from_source(filename, ext=='.pyc')
Dtestyacc.py27 fullpath = importlib.util.cache_from_source(filename, ext=='.pyc')
/external/python/cpython3/Lib/distutils/
Dutil.py447 cfile = importlib.util.cache_from_source(
450 cfile = importlib.util.cache_from_source(file)
/external/python/cpython3/Lib/importlib/
Dutil.py9 from ._bootstrap_external import cache_from_source
D_bootstrap_external.py301 def cache_from_source(path, debug_override=None, *, optimization=None): function
434 return cache_from_source(filename)
870 bytecode_path = cache_from_source(source_path)

12