-
Notifications
You must be signed in to change notification settings - Fork 66
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
Install MyST CLI using tools Pythonistas are familiar with (e.g. conda) #139
Comments
In my experience - there are many in the conda-forge community who are willing to help maintain packages and who know much more about it than I do :-) lots of folks help maintain other parts of the myst python ecosystem as well. Obviously it gets easier when the project is more well-used and known, so this might be more straightforward over time as we direct more attention to this tool. Maybe @ocefpaf has thoughts on anybody that knows how to manage javascripty things in the conda-forge world? Another option is that I think we could actually make mystjs installable with python as well, I know that the sphinx-theme-builder uses nodeenv to bundle its own version of node, and that might be an option (ref |
I don't know the first thing about JS but we do package node on conda-forge and folks use it to later install JS stuff. Maybe @bollwyvl did some recipes with that? Sorry bollwyvl if I'm misremembering. |
Is there a reason the CLI was built on the JS toolchain rather than the Python one? But more broadly, we could use nodeenv under the hood of a PyPI package if we really wanted to do that; but it might actually be cleaner to provide a |
Some thoughts on packaging and distributing
as to the python-node-sandwich:
|
This is fantastic -- thank you @bollwyvl!! We are already getting down to a single For "make [a] simple wrapper", I am still pretty fuzzy here: Any pointers on that final step would be really helpful - @stevejpurves is also a bit more versed in the python packaging world, and might be able to ask better questions! @pradyunsg there is some more context about the JS tools here:
|
If distributing through PyPI (a well-understood source for Then the Another tack altogether is targeting WASM, which would be portable, as node/deno/bun and the browser would run it natively, while python (and many other languages) could use one of the various bridge backends such as wasmer, etc. There is nascent tooling for doing this from JS with e.g. QuickJS, but it does open the can of worms of porting to rust, which has robust wasm, node, and python toolchains. |
This is a follow on task from executablebooks/team-compass#21. This will eventually allow a consistent install experience across pip and npm. See #139
This is a follow on task from executablebooks/team-compass#21. This will eventually allow a consistent install experience across pip and npm. See #139
This has now been completed! The CLI is available as mystmd across all package managers! 🚀 Thanks all for your help. :) |
It is possible to install node dependencies through Conda, including activating the correct version of nodejs. @stevejpurves and I tried this a few months back and couldn't figure it out.
If anyone from the community has experience with this, we would absolutely love the help!! I believe that having this in a more familiar package manager would certainly help with onboarding Python users.
@choldgraf maybe you have some pointers on who can do this sort of stuff in their sleep?!
The text was updated successfully, but these errors were encountered: