mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Fix Python package build on Windows with setuptools >= 65.4.0
For some reason, setuptools thinks it needs to be able to find the user's home directory to build a wheel, but on Windows this relies on an environment variable (USERPROFILE) that we weren't by default passing in through SCons.
This commit is contained in:
committed by
Ingmar Schoegl
parent
7684653bb2
commit
e20a57acfb
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -495,7 +495,7 @@ jobs:
|
||||
shell: bash
|
||||
- name: Build Cantera
|
||||
run: scons build -j2 boost_inc_dir=%BOOST_ROOT% debug=n logging=debug
|
||||
python_package=full env_vars=PYTHONPATH,GITHUB_ACTIONS
|
||||
python_package=full env_vars=USERPROFILE,GITHUB_ACTIONS
|
||||
msvc_version=${{ matrix.vs-toolset }} f90_interface=n --debug=time
|
||||
shell: cmd
|
||||
- name: Test Cantera
|
||||
|
||||
@@ -428,7 +428,7 @@ config_options = [
|
||||
"""Environment variables to propagate through to SCons. Either the
|
||||
string 'all' or a comma separated list of variable names, for example,
|
||||
'LD_LIBRARY_PATH,HOME'.""",
|
||||
"PATH,LD_LIBRARY_PATH,DYLD_LIBRARY_PATH,PYTHONPATH"),
|
||||
"PATH,LD_LIBRARY_PATH,DYLD_LIBRARY_PATH,PYTHONPATH,USERPROFILE"),
|
||||
BoolOption(
|
||||
"use_pch",
|
||||
"Use a precompiled-header to speed up compilation",
|
||||
|
||||
Reference in New Issue
Block a user