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:
Ray Speth
2022-09-27 21:57:54 -04:00
committed by Ingmar Schoegl
parent 7684653bb2
commit e20a57acfb
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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",