Skip to content

Commit

Permalink
do not run c-extension creation routines when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Aug 14, 2023
1 parent 652c127 commit e7e1d77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ source:
- patches/pypy_107663.patch # [name_suffix == "3.8"]
- patches/pypy_107660.patch # [name_suffix == "3.9"]
- patches/pypy_107661.patch
- patches/pypy_107668.patch # [name_suffix == "3.9"]


- url: https://downloads.python.org/pypy/pypy2.7-v7.3.6-win64.zip # [win]
Expand Down
24 changes: 24 additions & 0 deletions recipe/patches/107668.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# HG changeset patch
# User Matti Picus <[email protected]>
# Date 1692026252 -10800
# Mon Aug 14 18:17:32 2023 +0300
# Branch conda-3.9-v7.3.12
# Node ID 56b6319f7d74c233348a2109a3de883d5d38a581
# Parent 9563129b6f7d3d60334f3a5d42a8e9a74f5f31da
do not create c-extensions when running tests

diff -r 9563129b6f7d -r 56b6319f7d74 lib-python/3/test/support/__init__.py
--- a/lib-python/3/test/support/__init__.py Sat Aug 12 23:12:09 2023 +0300
+++ b/lib-python/3/test/support/__init__.py Mon Aug 14 18:17:32 2023 +0300
@@ -28,11 +28,6 @@

from .testresult import get_test_runner

-# This will create the _testmultiphaseimport c-extension module if it does not exist
-import _testmultiphase_build
-# This will create the _ctypes_test c-extension module if it does not exist
-import _ctypes_test_build
-
__all__ = [
# globals
"PIPE_MAX_SIZE", "verbose", "max_memuse", "use_resources", "failfast",

0 comments on commit e7e1d77

Please sign in to comment.