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

Fix compilation #28

Merged
merged 6 commits into from
Jan 19, 2024
Merged

Fix compilation #28

merged 6 commits into from
Jan 19, 2024

Conversation

diocas
Copy link
Contributor

@diocas diocas commented Jan 18, 2024

Aligned the compilation code with upstream (had to finally try to make it work), and now it builds the frontend components as well (these were being skipped).

Changed the name of the folder of the nbextension from "static" to "nbextension" (the Lab extension was inside "labextension", so it makes more sense this way).

Since the extension gets automatically copied to the final destination (and now the build code doesn't include the lab extension together with the Python module by default), I removed the possibility of manually installing it. This part of the code was (and would continue to) crash, since it was relying on the package.json file to retrieve the name (which was not necessary, but that's how it was).
I believe none of this is necessary, but we can easily add it back.

Needs testing.

@diocas diocas requested a review from etejedor January 18, 2024 18:10
We no longer ship the Jupyterlab code together with the python module, as it gets directly - and automatically - installed in the final destination.
etejedor
etejedor previously approved these changes Jan 19, 2024
@etejedor
Copy link
Contributor

@diocas should we have a look at the failed JavaScript check?

Makes checks pass
@etejedor etejedor merged commit 6f6d67f into master Jan 19, 2024
2 checks passed
@camper42
Copy link

camper42 commented Jan 22, 2024

maybe 3.0.2 or 3.1.0 release ?

our usage failed with 3.0.1:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/python/lib/python3.10/site-packages/sparkmonitor/labextension/package.json'

we use this command to install pip install sparkmonitor-v3.0.1.zip

@diocas
Copy link
Contributor Author

diocas commented Jan 22, 2024

@camper42 we removed version 3.0.1 because of that. This PR should fix the issue. We will tag a new version this Wednesday.
Sorry for the trouble.

@diocas diocas deleted the update_compilation branch January 22, 2024 14:57
@camper42
Copy link

never mind, thank you very much for your work in support of Lab 4

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

Successfully merging this pull request may close these issues.

3 participants