Open kfot opened 2 months ago
According to the changelog and that test, the post-build metadata manipulation is no longer supported, suggesting that the linked docs fragment might not be up to date.
By the way, does it mean that there is no way to set the version based on the data obtained during the building process (i.e. from dynamic setuptools_scm reference in pyproject.toml
file?)?
Although, not directly related, implementing setuptools_scm
support #4774 would be the ideal solution for me.
Checklist
What happened?
I attempted to set the package version during the post-build phase as described in the the brief paragraph from the most recent conda-build docs.
Based on this, I assumed the environment variables or templated code would be evaluated lazily (OS is Windows). However, this did not work.
The build command succeeds, but the version is set to
None
, indicating that the environment variablePACKAGE_VERSION
is not being evaluated as expected. My experiments suggest that the version is always set before the build phase.Conda Info
Conda Config
Conda list
Additional Context
No response