-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Meson: compile without embed-positions
#39745
Conversation
This is obviously a bad idea (for one when you type Side note: Assume #39279 is merged, I guess. |
Documentation preview for this PR (built with commit 540883d; changes) is ready! 🎉 |
I'm still trying to understand what this option actually does (or better: where the file path is actually used in sage). Since you worked on this recently, can you please expand why you think it is a bad idea.
Since the pyx files are not distributed in the wheel, this info wouldn't be available anyway in a "normal" installation. It only makes sense for editable installs, where one could probably fall-back to |
Looks like you already got the point, that p/s, no offense intended. Sorry if it came across as such.
Yes I got that, but removing the embedding would also break |
Could we just ship the |
No offense taken! Just wanted to make sure that only the feature
I thought that your recent PR for the special handling of the editable meson install would work here (obviously, the broken CI proofs that my assumption is wrong). So the idea would be: if it's an editable install, then use the module name relative to
I just tried |
I'm talking about sage. Things like:
|
More like it's the only feature that I have come across that make use of this. There might be more that I'm not aware of.
The problem is because numpy does not embed the signature or the source location in its docstring, so we have no choice. https://github.com/numpy/numpy/blob/main/numpy/random/mtrand.pyx#L389
Compare:
By the way, #39279 will show more information (signature and call signature) in |
Okay, let's close it for now. Once mesonbuild/meson-python#256 is implemented, we could disable the embedding of the filename for non-editable installs. |
Fixes #39735.
📝 Checklist
⌛ Dependencies