mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[SCons] Always allow 'conda' layout when using 'package_build'
This commit is contained in:
parent
08c1f84071
commit
2e5cd59741
@ -2050,7 +2050,7 @@ if conda_prefix is not None and sys.executable.startswith(str(conda_prefix)):
|
|||||||
env["prefix"] = conda_prefix.resolve().as_posix()
|
env["prefix"] = conda_prefix.resolve().as_posix()
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Using conda environment as default 'prefix': {env['prefix']}")
|
f"Using conda environment as default 'prefix': {env['prefix']}")
|
||||||
elif env["layout"] == "conda":
|
elif env["layout"] == "conda" and not env["package_build"]:
|
||||||
logger.error("Layout option 'conda' requires a conda environment.")
|
logger.error("Layout option 'conda' requires a conda environment.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user