Skip to content

Commit

Permalink
Add an option to disable compilation of the binary wheel.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jan 10, 2025
1 parent 4fa393a commit 73fdde6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ def build_extension(self, ext):


# There are a few reasons we might not be able to compile the C extension.
# Figure out if we should attempt the C extension or not.
# Figure out if we should attempt the C extension or not. Define
# COVERAGE_DISABLE_EXTENSION in the build environment to explicitly disable the
# extension.

compile_extension = True
compile_extension = os.getenv("COVERAGE_DISABLE_EXTENSION", None) is None

if "__pypy__" in sys.builtin_module_names:
# Pypy can't compile C extensions
Expand Down

0 comments on commit 73fdde6

Please sign in to comment.