Replies: 3 comments 4 replies
-
This would be fantastic! Just a reminder though of the challenges involved compared to a normal Python-with-binary-bits, in the worst case of an unprivileged venv user:
For 1. I have seen Java-based packages which select the Java instance using an env var. That's ugly, but it work. I guess the privs will have to use 'sudo pip' and --break-system-packages for 2. |
Beta Was this translation helpful? Give feedback.
-
Good points. I've never personally done pypi for something with c code.
In the short run, any pg distro's that want multicorn will need to package
it such that it is installable in their distro. I think we could likely
get pgdg to build us once we get reliable & cleanly compiling and working
on all current pg versions. We are on our way... Viva Multicorn!! :-)
…On Mon, May 27, 2024 at 1:29 AM ShaheedHaque ***@***.***> wrote:
This would be fantastic! Just a reminder though of the challenges involved
compared to a normal Python-with-binary-bits, in the worst case of an
unprivileged venv user:
1. A compiled library, possibly for one of the multiple installed PG
versions, installed where the PG server code expects it, i. e. using privs.
2. A second compiled library like the first, containing the utils.py
support (e. g. log_to_postgres) where the multicorn server wrapper is
installed, i. e. using privs.
3. The same as 2. but installed in there user's venv. Why is this
needed? Because the Python FDW code in server use almost certainly shares
definitions with the client use, and modern pip/venv cannot use 2.
—
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMWOHURCTD6IOO3NILMG3TZELADVAVCNFSM6AAAAABIFEVLEKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TKNRWGI3TS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Having the library published on pypi would be awesome! (I also just raised this in #61 before). Just to confirm, when you mention binaries, you're referring to the I'm trying to understand the need to package this binary file into the pypi package, maybe it wouldn't even be required in a first iteration? 🤔 The way we've currently set up our project using I think providing pre-compiled binaries for all architectures / operating systems / Postgres versions may be a great longer term goal, but sounds like quite a large undertaking. Maybe a pypi package with only the Python sources could be a great starting point, or do you see major limitations with that @ShaheedHaque @luss ? |
Beta Was this translation helpful? Give feedback.
-
I suggest we add this to our roadmap of ToDo items. I think we should call it multicorn2 since we don't own the 'multicorn' project.
Beta Was this translation helpful? Give feedback.
All reactions