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

Conda-forge Package #410

Closed
iamthebot opened this issue Jun 12, 2024 · 12 comments · Fixed by #917
Closed

Conda-forge Package #410

iamthebot opened this issue Jun 12, 2024 · 12 comments · Fixed by #917
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@iamthebot
Copy link

Started working on a package for conda-forge here.

I think we'll need a slightly different installation mechanism since in conda-forge we'd need to depend on the npm package there directly (hence having basedpyright use the npm binary from conda-forge).

Would you (the author) be OK with a conda-forge package? This would be very for those of us who prefer to have all dependencies installed as conda packages.

Any suggestions on how we might have basedpyright use another npm (in lieu of using the nodejs_wheel import)? I saw there was a nixos package PR somewhere...

@DetachHead
Copy link
Owner

happy to support this. i'm not familiar with conda so im not sure how you'd go about it or if the way the nixos package does it could be any inspiration. however if you want to make any changes to basedpyright to make this easier im open to that too.

@iamthebot
Copy link
Author

@DetachHead let me do some more investigation and report back on this issue w/ suggestions for any changes to basedpyright needed to enable this. Hope you don't mind if we keep this issue open in the meantime to track the effort here.

@DetachHead
Copy link
Owner

no problem!

@lucascolley
Copy link

@iamthebot @DetachHead could I open a draft PR upstream so that we can ask the conda-forge maintainers about the situation with npm and vendored packages?

@DetachHead
Copy link
Owner

sure

@danielnachun
Copy link

I'm not an official member of the staged-recipes team at conda-forge but have contributed extensively there so I can provide some feedback on how this would probably be easiest to handle in conda-forge. I would strongly prefer if basedpyright provided an option for users to use their own NodeJS installation if they already have one, such as the one available in conda-forge.

There are many other changes/improvements basedpyright has made to pyright aside from using nodejs-wheel to vendor NodeJS so having it in conda-forge would still be great. The apparent hard dependency on nodejs-wheel is just redundant with what conda-forge already provides and would make packaging more difficult.

@DetachHead
Copy link
Owner

related: #586

fyi basedpyright is already published on npm however it's currently intended for internal use only and is subject to breaking changes. specifically, the basedpyright playground used to rely on it although it now uses a separate browser build instead.

however i believe some of the alternate installation methods maintained by other contributors have started to rely on it so i will try to avoid breaking it. the only change i anticipate making is fixing the command names which are currently pyright and pyright-langserver. i intend to change them to basedpyright and basedpyright-langserver respectively to be consistent with the pypi package. once i've made that change, i will probably consider the npm package to be officially supported.

@danielnachun
Copy link

I don't think we actually need the NPM package for conda-forge - the PyPI package should work fine once #586 is implemented.

@lucascolley
Copy link

feedstock creation is done. I'll test it out later tonight

@lucascolley
Copy link

looks like this issue can be closed now! working at data-apis/array-api-extra#40

@DetachHead
Copy link
Owner

i want to add it to the install instructions so i'll leave this issue open for now

@DetachHead DetachHead added the documentation Improvements or additions to documentation label Nov 30, 2024
@DetachHead
Copy link
Owner

i made a PR adding the install instructions #917 if any of yous want to take a look before i merge it that'd be appreciated. thanks!

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

Successfully merging a pull request may close this issue.

4 participants