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

Bug fix for py-jupyter-server and hidden npm/node dependency #417

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Mar 19, 2024

Description

Add variant typescript for py-jupyter-server@:1, which then requires npm/node. Patch the build system for ~typescript so that it doesn't autodetect any system npm/node installations. That is because if it does find npm somewhere in the path, it attempts to build the typescript extension even though it shouldn't, and this can cause problems as described in JCSDA/spack-stack#995, JCSDA/spack-stack#928, and spack#41899.

Note that the build backend has changed from py-packaging to py-hatch between py-jupyter-server versions 1 and 2, therefore this bug fix is restricted to version 1.

Corresponding spack develop PR: spack#43279 (merged 2024/03/20)

Testing

I tested installing [email protected] on my macOS with a broken local npm/node installation (to mimick the problem described in JCSDA/spack-stack#995. I was able to install it successfully with the default variant ~typescript, and also with +typescript (which added npm and node as dependencies).

It also fixed the problem on Narwhal with the existing but broken npm/node installation.

Also testing default ~typescript in JCSDA/spack-stack#1033

Issue(s) addressed

Resolves JCSDA/spack-stack#995
Resolves JCSDA/spack-stack#928

Dependencies

n/a

Impact

n/a

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have run the unit tests before creating the PR

…npm/node. Patch the build system for ~typescript so that it doesn't find any npm/node installations and attempts to build the typescript extension even though it shouldn't
@climbfuji climbfuji self-assigned this Mar 19, 2024
@climbfuji climbfuji added the INFRA JEDI Infrastructure label Mar 19, 2024
@climbfuji climbfuji marked this pull request as ready for review March 19, 2024 23:56
Copy link
Collaborator

@srherbener srherbener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change works on my Mac! Thanks for fixing this.

@climbfuji climbfuji merged commit 4fafe3e into JCSDA:jcsda_emc_spack_stack Mar 20, 2024
15 checks passed
@climbfuji climbfuji deleted the bugfix/py_jupyter_server_npm_node branch March 20, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INFRA JEDI Infrastructure
Projects
No open projects
3 participants