-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Create PyPI source distribution of meson-based setup #39548
base: develop
Are you sure you want to change the base?
Conversation
Documentation preview for this PR (built with commit 3b28cce; changes) is ready! 🎉 |
Note:
I created these with
To create the sdist meson forced me to install |
Mhh, personally I find Edit: I've now changed the name in
Thanks, |
I think the meson build is ready to be the default in this context. @tornaria @orlitzky @antonio-rojas @isuruf @saraedum Is this working for you? (feel free to ping more people that might make use of the sdist) |
Regardless of pypi, I think it's a good idea to keep I think the best might be that we keep publishing the
This may lead to confusion. The two distributions are different enough.
No, it's not necessary afaik. |
I don't use the sdist, but essentially the only thing blocking me from switching to meson downstream is the missing cli scripts (#39015) |
The wheels I that get built from this sdist are missing some stuff... I tried
and here's the result
Most of the difference (in size) is because How are you testing this? Ideally, one should be able to use EDIT:
Missing files:
vs
|
cc @AndreasEnge I believe you also experienced these missing files when you were trying to build with the standard machinery for guix first. |
Also missing:
The kernel argv is currently set to
and I guess it might change to something like
This is similar to what |
Building the Guix package with python from a git checkout, I am missing the .pyx files in the resulting installation in lib/python3.10/site-packages/sage/*; I am not sure whether this is what you meant, @saraedum . |
@dimpase @sagemath/core could you please try to get https://pypi.org/project/sagemath/ under the sage umbrella? That would be awesome! |
Where/how are these files generated? I cannot find them in the repo. |
Why would you expect the
|
|
regarding .pyx files in the wheel, aren't they needed for documentation at sage/ipython prompt? Probably in Jupiter too |
I don't mind at all. In fact, if the Sage community prefers that I eliminate the package I will do it. The ecosystem works much differently nowadays than it used to do... |
Thanks! What is the current established best practice for setting up jupyter kernels? Based on https://ipython.readthedocs.io/en/latest/install/kernel_install.html (and similar guides for other kernels) it looks like something: $ python -m pip install ipykernel
$ python -m ipykernel install [--user] [--name <machine-readable-name>] [--display-name <"User Friendly Name">] So first install the package (in our case that would be |
Awesome! Thanks a lot. Could you please organize with @dimpase the transition of the package to the sagemath org? I've now renamed the meson-package back to |
I would keep it separate - not everyone needs jupyter. However, letting the user figure out what to put into the template is not a good idea. |
I think this is needed for special cases (i.e. the kernel is installed The "default" and simple way, and what ipykernel itself does, is to
The json file could be just a static file, for instance:
|
one way or another we should support installing the kernel for use in an existing jupyter installation (including remote ones?), not only in the one we vendor. ATM such support is pretty messy and on the level "maybe try this, it might work" :-( |
What I described above is to install the kernel for use in the existing jupyter, and it works fine with
I don't use it a lot, but IME it just works (this is with both sage and jupyter installed from distro packages into |
@mmasdeu - I got and accepted your invite, but "Manage" button on my Projects PyPI page is greyed out for |
I think I added @saraedum as owner and you as a maintainer. I hope that's
okay!
Marc
…On Sat, Mar 1, 2025, 6:27 AM Dima Pasechnik ***@***.***> wrote:
Hope @mmasdeu <https://github.com/mmasdeu> won't mind ?
I don't mind at all. In fact, if the Sage community prefers that I
eliminate the package I will do it. The ecosystem works much differently
nowadays than it used to do...
@mmasdeu <https://github.com/mmasdeu> - I got and accepted your invite,
but "Manage" button on my Projects PyPI page is greyed out for sagemath.
I think you should invite me to be an "Owner".
—
Reply to this email directly, view it on GitHub
<#39548 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMQAIT7J5A2OXMJ3AP7WK32SFAL7AVCNFSM6AAAAABXOW5EROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJRHE3DKMRTGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: dimpase]*dimpase* left a comment (sagemath/sage#39548)
<#39548 (comment)>
Hope @mmasdeu <https://github.com/mmasdeu> won't mind ?
I don't mind at all. In fact, if the Sage community prefers that I
eliminate the package I will do it. The ecosystem works much differently
nowadays than it used to do...
@mmasdeu <https://github.com/mmasdeu> - I got and accepted your invite,
but "Manage" button on my Projects PyPI page is greyed out for sagemath.
I think you should invite me to be an "Owner".
—
Reply to this email directly, view it on GitHub
<#39548 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMQAIT7J5A2OXMJ3AP7WK32SFAL7AVCNFSM6AAAAABXOW5EROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJRHE3DKMRTGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Instead of the old setup-tools based source distribution, the new meson-based one is now uploaded to pypi.
Test run: https://github.com/tobiasdiez/sage/actions/runs/13421204553
New sdist: https://github.com/tobiasdiez/sage/actions/runs/13421204553/artifacts/2618948419
📝 Checklist
⌛ Dependencies