load_setup_py_data() support
See original GitHub issueFrom some evaluation of boa
, my thoughts are a) it’s wildly faster than conda-build
, and b) we should be able to, and would love to, switch to it for most/all of our packages. Unfortunately, as it stands, that would currently be blocked in many cases by the lack of support for load_setup_py_data()
(docs) or equivalent.
Is this something that you would be open to supporting in some form? I think it would also require some looping and maybe conditional support along the lines of what you outline in https://github.com/mamba-org/boa/issues/191#issuecomment-935540102
I think that the support for providing the data could be lifted directly from conda-build
here. I’d be happy to provide a PR for that, but adding other templating constructs would presumably be a bit more involved.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
@dhirschfeld right, that’s exactly the kind of “recursive” chicken - and - egg situation that I would love to avoid.
Ideally instead of reading a setup.py, one would specify dependencies in a
toml
file or similar static metadata file and generate theboa
andpypi
“recipes” from that.Or, you coudl use the
setup.py
file to simply parse the dependencies out of theboa
recipe (since it’s pure yaml it’s straightforward!)It seems this functionality is now part of
conda-build
asload_file_data
:Added in https://github.com/conda/conda-build/pull/4480
@wolfv - is it planned to support
load_file_data
? If not, would that be a reasonable feature request?