Skip to content

Commit

Permalink
attempting to change windows python compiler from MSVSC to mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed May 9, 2024
1 parent a301869 commit 4de3787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
EXTLIB_INSTALL_DIR: ${{github.workspace}}\extlib\install
run: >
(gcm python3).Path &&
Set-Content -Path "C:\hostedtoolcache\windows\Python\3.9.13\x64\Lib\distutils\distutils.cfg" -Value "[build]`ncompiler = mingw32"
python3 -m venv ${{github.workspace}}/venv &&
ls ${{github.workspace}}/venv &&
${{github.workspace}}/venv/Scripts/Activate.ps1 &&
Expand Down
2 changes: 1 addition & 1 deletion source/wrappers/python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else:
# windows build with gcc/mingw still gives .a file outputs for static libs
stalib_ext = 'a'
dynlib_ext = '.dll'
extra_compile_args = ['/-std:c++17']
extra_compile_args = ['/std:c++17']
extlib = os.environ.get("EXTLIB_INSTALL_DIR")
extra_includes = [os.path.join(extlib, "include")]

Expand Down

0 comments on commit 4de3787

Please sign in to comment.