Skip to content

Commit f0ff58e

Browse files
committed
Back out sys.implementation.cache_tag = None
1 parent 149de02 commit f0ff58e

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

packages/pytest/meta.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ source:
88

99
patches:
1010
- patches/named-tmp-and-rm-dup2.patch
11-
- patches/workaround_get_tag.patch
1211

1312
requirements:
1413
run:

packages/pytest/patches/workaround_get_tag.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/main.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ main(int argc, char** argv)
5757
if (PyObject_SetAttrString(sys, "dont_write_bytecode", Py_True)) {
5858
return 1;
5959
}
60-
61-
// By disabling the cache_tag, Python won't look for cached bytecode files
62-
// when importing modules, which saves on filesystem I/O time
63-
PyObject* implementation = PyObject_GetAttrString(sys, "implementation");
64-
if (implementation == NULL) {
65-
return 1;
66-
}
67-
68-
if (PyObject_SetAttrString(implementation, "cache_tag", Py_None)) {
69-
return 1;
70-
}
71-
72-
Py_DECREF(implementation);
7360
Py_DECREF(sys);
7461

7562
if (js2python_init() || JsImport_init() || JsProxy_init() ||

0 commit comments

Comments
 (0)