-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Binary with dynamic dependency #1182
Comments
I think it's possible to implement the workaround.
I'm not sure it's a quick job, you'll have to look into it. It might be much quicker if you can change to static link your dependencies. |
Yes, this is definitely the way to go in the short term (also because I'm not familiar with your codebase, it would take me while to make a PR). |
You can also turn the binary into a extension module instead and add a |
This is not a problem for me, because the CLI I'm trying to package has no Python at all.
This is actually a pretty simple option, I'm considering it. But, if reasonable, I'd still prefer static compilation (since there is no Python at the moment, if possible I'd keep Python free). |
Well, if you are distributing binaries using Python wheels, you are not really Python free though. |
Agreed, you have a point. But one thing is to depend on Python infrastructure for packaging, while here running does not involve the interpreter at all. Of course, the reason is not that it might not be available (if you are installing with |
I think the most obvious benefits for Python free binary is startup time, but if we are going to implement the workaround by moving the executable in Unless we write the wrapper in |
With that, I meant that my favorite option is still static compilation, in this case. I agree that the workaround requires Python, and as you said that's part of the game. I also agree that using So, I'm going to aim at statically compiling my binary. But, for the future, I'd like to implement (or see implemented) also the workaround, such that |
Essentially, the problem is the one described by the title:
bin
, but my binary is dynamically linked to a libraryLD_LIBRARY_PATH
manually is not working)The full reproduction is already spelled out in another issue: pypa/auditwheel#396
They already closed the issue as duplicated, since the problem on their side is the same of pypa/auditwheel#340, where they also provide a workaround:
I wonder if it's possible (i.e. quick enough) to implement the workaroud in
maturin
.The text was updated successfully, but these errors were encountered: