Skip to content

Commit

Permalink
Fix up build
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicField committed Oct 5, 2024
1 parent a5be1e8 commit e45035c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ def check_venv():
)


def patch_out_asycio():
def patch_out():
# On windows mock gets imported from _msvccompiler which then tries to import asyncio
# which causes a name conflict on concurrent. This prevents that.
if sys.platform.startswith('win'):
asyncio_stub = type(sys)('asyncio')
sys.modules['asyncio'] = asyncio_stub
if sys.platform.startswith("win"):
sys.modules["unittest"] = type(sys)("unittest")
sys.modules["unittest.mock"] = type(sys)("mock")


def check_compiler():
patch_out_asycio()
patch_out()
import distutils.ccompiler as cc
plat = os.name
compiler = cc.get_default_compiler(plat)
Expand Down

0 comments on commit e45035c

Please sign in to comment.