Python version used in rez-build automatically become a requirement? #1443
-
I have been building packages using rez in python-3.9, up until recently where I needed to add python-3.7 as a package due to Houdini using that version. So now my Houdini packages have python-3.7 as a weak reference. name = "sesi_download_api"
version = "0.1.0"
build_requires = ["python-3"]
build_command = "python {root}/build.py"
requires = [
"python-3",
"python_dotenv",
"semantic_version",
"rez_utils",
]
uuid = "d56ac672-507e-11ed-91b7-e0d55e201446"
def commands():
env.PYTHONPATH.append("{root}") (All Note that the package requirement is for python-3 only. However, now when I try to build I get the following conflict:
The package has no requirement for python-3.9, so is this getting baked in somehow from when I build the package using python-3.9? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This has been a source of mistakes by many in the past, and I think our docs should clarify it better. |
Beta Was this translation helpful? Give feedback.
build_requires
is propagating a python-3 non-weak requirement to the build requirements of your houdini package.You might have more success with
private_build_requires
, if I'm interpreting your situation correctly.This has been a source of mistakes by many in the past, and I think our docs should clarify it better.