-
-
Notifications
You must be signed in to change notification settings - Fork 31
add an meson option to pass pari location #195
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
base: main
Are you sure you want to change the base?
Conversation
|
This doesn't quite work, as custom prefix pari clashes with a system-wide one |
this what I get if I install pari 2.17.3 to |
|
The simplest solution would be to convince the pari people to add a pkg-config file... |
with PPREF set to point at pari install prefix, do export LDFLAGS="-Wl,-rpath=$PPREF/lib -L$PPREF/lib -lpari" pip install . --config-settings=setup-args="-Dpari-prefix=$PPREF" works
|
I pushed a solution involving setting cf the commit message: |
Does meson use rpath in this case? That's what's needed for building wheels. |
|
is setting LDFLAGS equivalent to passing an argument to meson? |
OK, turns out I can use now I need to figure out how to pass all this to |
Yes, I think so (not sure what exactly happens on Windows...) |
I'm going to post on pari-dev, but first one needs to figure out how to add that functionality to their perl-based Anyway, we need to support the current pari versions, too. |
|
and it's a comedy of errors/bugs: however if I take the With pip it's even worse, it's unable to chain |
A few months ago, I already expressed the wish for a pkg-config file on their mailing list (along with a couple of other things that would support building on Windows). No reaction so far, so it would be good if you could reinforce that wish.
It's working, but only if Pari is installed in a standard location... As the only semi-urgent use case for a non-standard location is sage-the-distro, I would say that supporting non-standard locations only for new Pari versions with pkg-config would be an acceptable trade-off (of course given that Pari would add pkg-config files relatively soon). |
in this case, does libpari still get bundled into binary wheels? Anyhow, there is no really standard location on macOS to speak about. |
Yes, that should still work. |
fixes #194