-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
pkgs/sagemath*: Exclude all__*.py files of other distributions #36015
Conversation
I may be saying stupid here, how will the PR in its current state prevent |
Sorry, I missed the part about bliss.pyx in your report. I'll take a look. |
Similarly, bits belonging to meataxe and sirocco were shipped as part of sagemath-standard. I cannot say for the other two but it may be the case as well. |
I have just inspected the "Manifest.in" for sagemath-standard and it does include an exclude line for bliss
but none for the other optional packages. But even so it is there, I still have bliss.pyx shipped currently. I am not sure why it is ignored. |
OK,
pattern. Which I find problematic from a maintenance point of view but probably doable. |
We may want |
I think we need to build the wheels via the sdists so that filtering works properly. I'm already doing this in #35095 for most distributions. |
There is unfortunately a limitation of setuptools: If I want to declare package data, I need to first declare a package. But this then leads to include all Python files in that package as source files. This will all go away when we move from setuptools to something better (#34630). In the meantime, building wheel via sdist is the solution. This is also the default way how the "build" tool builds wheels. |
Well it is a bit of an issue when you start from a git clone. The process right now would be
But it remains that the current |
You mean ebuild insists on using |
Out of my hands at this stage. I use the standard boiler plate I am provided with - which mostly expect a sdist or sdist like thing. Part of the problem is that this process takes precedence over whatever the package maintainer would want to do. Philosophically, I consider the whole thing as python wanting to have nothing to do with downstream packaging and not supporting it. This is the way we package things in python, deal with it. A current that seems to have gain prevalence in a number of ecosystems in the last decade for good or bad. I do consider it a mixed bag myself, but coming from a rolling release distribution like Gentoo, I appreciate wanting to escape the normal binary distribution model. Using binary python package from a traditional distribution does put serious limits on the user. |
OK, I can make things work in Gentoo so long as |
… to distributions related to optional packages
Yes, done in a8d6ef0 |
Thanks and now I have to refresh and restart my edits on sagemath-standard's MANIFEST.in. |
Just pushed another fix of files that shouldn't be shipped by sagemath-standard any more. |
That take care of what I was working on. For tdlib I think there should be
a pyx file as well as the .cpp.
…On Fri, 4 Aug 2023 at 12:11, Matthias Köppe ***@***.***> wrote:
Just pushed another fix of files that shouldn't be shipped by
sagemath-standard any more.
—
Reply to this email directly, view it on GitHub
<#36015 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABE7M5BVDR5XO33EQ645XDXTQ43DANCNFSM6AAAAAA3AMVMRA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Apart from the last question about that .cpp file, I tested that this branch worked properly at least for bliss, meataxe and sirocco. I think we are able to ship it ASAP. |
I thought I took care of the tdlib things already in cf02a42 |
I'll postpone the switch to using python-build to a follow-up PR |
Did you read my review comment? It works as is, but the line excluding |
I don't see a comment, maybe you didn't "submit" the review?
That's true, I'll remove it again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I must have "forgotten" to submit. It should go now.
Documentation preview for this PR (built with commit e57dacd; changes) is ready! 🎉 |
May I set to positive review then? |
Sorry forgot to change the label. |
Thank you! |
Now that rc0 is out and I have run proper doctests on sage-on-gentoo, I have noticed unintended consequences that I missed before.
and
prior to this PR, the tests were fine because the files concerned would be just shipped as part of sagemath-standard. So far we have dealt with doctests requiring real access to the sources with |
Fixes #35661 (comment)
📝 Checklist
⌛ Dependencies