Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anaconda Python #14

Open
harlequin opened this issue Oct 8, 2024 · 3 comments
Open

Anaconda Python #14

harlequin opened this issue Oct 8, 2024 · 3 comments

Comments

@harlequin
Copy link

Currently the python tool plugin is using the pre-compiled binaries for installation.

There is another method which is widespread in the python community, Anaconda and all it’s derivates.

I wanted to start to implement this into the tool plugin environment.
@milesj What would fit best to your strategy.

  • Implement as own tool, with configuration for selecting Anaconda,Mamba,Micromamba, etc…
  • Implement this as part of the existing python tool, including config for cpython or the mentioned settings from above
@milesj
Copy link
Contributor

milesj commented Oct 8, 2024

I don't know anything about anaconda. Can you briefly talk about how it's used so I can better answer this?

@harlequin
Copy link
Author

harlequin commented Oct 9, 2024

No problem,

with python you are going very fast in the so called dependency hell. (workspace dependencies includes dependencies which breaks your workspace dependencies ).
Additional there is very often the task for switching the python version itself.

So Anaconda (and derivatives) is a package manager which will also bootstrap the correct python version for the developer and creates a named virtual environments which than can be used within a project.

So I would likely to implement, from my point of view

  • Create a proto tool wasm plugin for installing microconda (it's a derivative, smaller and faster compared to Anaconda)
  • Create a microconda_toolchain which can be load from moon

As you can see, first point is already done and can be contributed or referenced ... if wanted.
Only on the seconds topic I can really getting the moon toolchain_plugin to load the plugins configured in the toolchain.yml
Maybe you can send me some hints here...

And according to the second point I wanted to contribute also to the moon project itself ...

Side question: Do you have also Slack Channels, because Discord is forbidden by company profile ...

@milesj
Copy link
Contributor

milesj commented Oct 9, 2024

As you can see, first point is already done and can be contributed or referenced ... if wanted.

If you want to share the plugin with others, you can do it here: https://github.com/moonrepo/proto/tree/master/registry

Only on the seconds topic I can really getting the moon toolchain_plugin to load the plugins configured in the toolchain.yml
Maybe you can send me some hints here...

moon doesn't support third-party plugins yet, it's all hard-coded. It will in the future though.

Side question: Do you have also Slack Channels, because Discord is forbidden by company profile ...

Sorry only Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants