Skip to content
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

How to install PyApsi #17

Open
matthewakram opened this issue Jun 8, 2023 · 2 comments
Open

How to install PyApsi #17

matthewakram opened this issue Jun 8, 2023 · 2 comments

Comments

@matthewakram
Copy link

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?

@LGro
Copy link
Owner

LGro commented Jun 10, 2023

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 ☺️ 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.

@matthewakram
Copy link
Author

matthewakram commented Jun 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants