Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
f0ff58e7
Commit
f0ff58e7
authored
Nov 09, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out sys.implementation.cache_tag = None
parent
149de022
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
26 deletions
+0
-26
packages/pytest/meta.yaml
packages/pytest/meta.yaml
+0
-1
packages/pytest/patches/workaround_get_tag.patch
packages/pytest/patches/workaround_get_tag.patch
+0
-12
src/main.c
src/main.c
+0
-13
No files found.
packages/pytest/meta.yaml
View file @
f0ff58e7
...
...
@@ -8,7 +8,6 @@ source:
patches
:
-
patches/named-tmp-and-rm-dup2.patch
-
patches/workaround_get_tag.patch
requirements
:
run
:
...
...
packages/pytest/patches/workaround_get_tag.patch
deleted
100644 → 0
View file @
149de022
diff -ur pytest-3.6.3-bak/src/_pytest/assertion/rewrite.py pytest-3.6.3/src/_pytest/assertion/rewrite.py
--- pytest-3.6.3-bak/src/_pytest/assertion/rewrite.py 2018-11-08 14:58:43.984236991 -0500
+++ pytest-3.6.3/src/_pytest/assertion/rewrite.py 2018-11-08 14:59:59.881455735 -0500
@@ -19,7 +19,7 @@
# pytest caches rewritten pycs in __pycache__.
-if hasattr(imp, "get_tag"):
+if hasattr(imp, "get_tag") and imp.get_tag() is not None:
PYTEST_TAG = imp.get_tag() + "-PYTEST"
else:
if hasattr(sys, "pypy_version_info"):
src/main.c
View file @
f0ff58e7
...
...
@@ -57,19 +57,6 @@ main(int argc, char** argv)
if
(
PyObject_SetAttrString
(
sys
,
"dont_write_bytecode"
,
Py_True
))
{
return
1
;
}
// By disabling the cache_tag, Python won't look for cached bytecode files
// when importing modules, which saves on filesystem I/O time
PyObject
*
implementation
=
PyObject_GetAttrString
(
sys
,
"implementation"
);
if
(
implementation
==
NULL
)
{
return
1
;
}
if
(
PyObject_SetAttrString
(
implementation
,
"cache_tag"
,
Py_None
))
{
return
1
;
}
Py_DECREF
(
implementation
);
Py_DECREF
(
sys
);
if
(
js2python_init
()
||
JsImport_init
()
||
JsProxy_init
()
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment