Skip to content

Commit 2d5912e

Browse files
committed
Unconditionally skip .pyc creation to see if that's the cause
1 parent 2966642 commit 2d5912e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,8 @@ def get_code(self, fullname):
821821
hash_based = False
822822
check_source = True
823823
try:
824+
# DO NOT MERGE - just testing unconditionally skipping this path
825+
raise NotImplementedError()
824826
bytecode_path = cache_from_source(source_path)
825827
except NotImplementedError:
826828
bytecode_path = None
@@ -902,10 +904,7 @@ def __init__(self, fullname, path):
902904
"""Cache the module name and the path to the file found by the
903905
finder."""
904906
self.name = fullname
905-
if isinstance(path, str):
906-
self.path = sys.intern(path)
907-
else:
908-
self.path = path
907+
self.path = path
909908

910909
def __eq__(self, other):
911910
return (self.__class__ == other.__class__ and

Python/sysmodule.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MERGE
2-
#define TAG NULL
2+
//#define TAG NULL
33

44

55
/* System module */
@@ -3604,6 +3604,13 @@ make_impl_info(PyObject *version_info)
36043604
if (res < 0)
36053605
goto error;
36063606

3607+
// DO NOT MERGE
3608+
#ifdef MS_WINDOWS
3609+
if (GetEnvironmentVariableW(L"PYNOCACHETAG", NULL, 0)) {
3610+
_PySys_ImplCacheTag = NULL;
3611+
}
3612+
#endif
3613+
36073614
value = _PySys_ImplCacheTag
36083615
? PyUnicode_FromString(_PySys_ImplCacheTag)
36093616
: Py_NewRef(Py_None);

0 commit comments

Comments
 (0)