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

Custom path for libindiclient.a #38

Open
jodier opened this issue Jul 13, 2023 · 2 comments
Open

Custom path for libindiclient.a #38

jodier opened this issue Jul 13, 2023 · 2 comments

Comments

@jodier
Copy link

jodier commented Jul 13, 2023

Dear pyindi-client deceloppers,

Would it be possible to implement something to make it possible to specify a custom libindiclient.a path when installing pyindi-client?

It's a very interesting feature to embed "libindiclient.a" and "pyindi-client" in an application and not only in "/usr/lib/" + march, "/usr/lib", "/usr/lib64", "/lib", "/lib64", "/usr/local/lib/" + march and "/usr/local/lib".

To do so (and be compatible with both a "python setup.py install" and "pip install pyindi-client"), the solution is to add an environment variable (for example INDICLIENT_PATH):

...

if "LIBINDICLIENT_PATH" in os.environs:
    libindisearchpaths.append(os.environs["LIBINDICLIENT_PATH"])

libindipath = ""

...

And regenerate setup.cfg:

[build_ext]

swig_opts = -v -Wall -c++ -threads -I<LIBINDICLIENT_PATH>/include/libindi

include_dirs = <LIBINDICLIENT_PATH>/include/libindi

library_dirs = <LIBINDICLIENT_PATH>/lib

libraries = cfitsio nova z

Best regards,
Jérôme

@tbowers7
Copy link

tbowers7 commented Jun 4, 2024

I second a request for this feature.

@knro
Copy link
Contributor

knro commented Jun 5, 2024

Can anyone submit a PR for this? It would be greatly appreciated.

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

3 participants