PyAPSI icon indicating copy to clipboard operation
PyAPSI copied to clipboard

How to install PyApsi

Open matthewakram opened this issue 2 years ago • 2 comments

Hello, how is PyApsi intended to be installed. I would like to implement a project that includes PSI functionality. Installing PyPSI through PIP results in an invalid instruction exception when executed. Installing manually using the instructions in /docker is very bad for integration into complex poetry projects. Is there any way to easily install this, or fix the pip installation?

matthewakram avatar Jun 08 '23 14:06 matthewakram

Hi @matthewakram, I'm still trying to figure out the best way to expose APSI to the Python world. If you have ideas or proposals, do let me know :relaxed: I still also have a project idea that I'd like to use APSI / PyAPSI for, but since this is all just fun on the side the progress has been slow.

Could you elaborate a bit on what in particular is "very bad" for complex poetry projects? Not that I don't agree, but I'm curious which of the complexities bothers you most.

What I'd consider the most flexible scenario is to build the PyAPSI dependency in any downstream project from source on installation. That way, we could get all the target platform specific optimizations going and wouldn't need workarounds (see #11). However, I've not figured out yet how to achieve that with all of APSI's dependencies. Maybe one could ship all of them together already, eliminating the need for another package manager like vcpkg.

Regarding prebuilt wheels, I'm somewhat hopeless at the moment, because even if it works the version would need to be so stripped down to the bare minimum that it'd lack all kinds of extensions for speed ups making the whole setup less useful overall.

LGro avatar Jun 10 '23 10:06 LGro

For clarity, in my project, we are under the constraint that we need to deploy the code on the cloud using CF. This heavily restricts me to have to use a pip requirements file to include python libraries. There are some workarounds to get installer scripts working but it can get pretty overwhelming quite quickly. Unfortunately, I am also not the best programmer and don't really know how to get started on stuff like this. So I was just wondering if there is any way to automate the installation process, such that I can use the PyApsi module in my python code!

P.S. thanks for your help, and great job on getting this to work in the first place. If I can get this working, this would save me tonnes of time.

matthewakram avatar Jun 10 '23 11:06 matthewakram