Skip to content

Commit

Permalink
Use setuptools.msvc when available
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Sep 3, 2024
1 parent 3737a3c commit 2929206
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion brian2/codegen/cpp_prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
import subprocess
import sys
import tempfile
from distutils._msvccompiler import _get_vc_env

try:
from setuptools.msvc import msvc14_get_vc_env as _get_vc_env
except ImportError: # Setuptools 0.74.0 removed this function
from distutils._msvccompiler import _get_vc_env

from distutils.ccompiler import get_default_compiler

from brian2.core.preferences import BrianPreference, prefs
Expand Down

0 comments on commit 2929206

Please sign in to comment.