question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

load_setup_py_data() support

See original GitHub issue

From 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:open
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wolfvcommented, May 23, 2022

@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 the boa and pypi “recipes” from that.

Or, you coudl use the setup.py file to simply parse the dependencies out of the boa recipe (since it’s pure yaml it’s straightforward!)

0reactions
dhirschfeldcommented, Oct 4, 2022

Ideally instead of reading a setup.py, one would specify dependencies in a toml file or similar static metadata file and generate the boa and pypi “recipes” from that.

It seems this functionality is now part of conda-build as load_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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failures in 2.0.3 due to load_setup_py_data() · Issue #1429
Successfully merging a pull request may close this issue. don't load setup.py data when meta.yaml entry points present msarahan/conda-build.
Read more >
conda-build Documentation
You can build conda packages from a variety of source code projects, most notably Python. For help packing a Python project, see the...
Read more >
conda-build Changelog - PyUp.io
Support for post-build metadata (__conda_version__.txt and the like) has been ... don't load setup.py data when considering entry points (use only info from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found