-
Notifications
You must be signed in to change notification settings - Fork 549
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
provide python without RUNPATH for staticx-support #325
Comments
Hello @Andrwe! Thank you for the report. We'll investigate it |
setup-python GitHub action on Ubuntu is incompatible with staticx. See: * actions/setup-python#325 * JonathonReinhart/staticx#188 * https://staticx.readthedocs.io/en/latest/rpath.html However, deadsnakes action installs Ubuntu package from PPA and it doesn't cause this problem. Hence, we use this action for Python setup on Ubuntu.
@MaksimZhukov , this is a major blocker to the Python community which is currently unable to build universal (static binaries) using the standard setup-python action. Is there something we can do to try to prioritize the work on this ? (I am also not a typescript developer). Thanks |
Thank you for letting us know about the issue importance! |
Thanks for the quick update. Meanwhile I will try to find some stamina to build and maintain alternative action so that we can use more specifically for staticx builds. |
We use Python from the deadsnakes Ubuntu PPA because the Python from actions/setup-python links with RUNPATH which is not compatible with StaticX. Thanks @jmsmkn for the tip and initial implementation in #224. https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa actions/setup-python#325
We use Python from the deadsnakes Ubuntu PPA because the Python from actions/setup-python links with RUNPATH which is not compatible with StaticX. Thanks @jmsmkn for the tip and initial implementation in #224. https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa actions/setup-python#325
+1 building python from source is always an option. Since this issue is over a year old with no update, I figure I should provide my fellow googlers with my solution. Here's the job step I use in my workflow:
|
Description:
I want to use this project as GH action to generate a statically linked python binary using staticx.
While implementing the workflow I ran into JonathonReinhart/staticx#188 due to the usage DT_RUNPATH.
It would be nice to have a setup-python version which does not use RUNPATH for use-cases like this.
Justification:
I understand that using RUNPATH simplifies the process of provinding a self-contained and reusable venv.
Unfortunately for running staticx that is bad because the generated binary will check the path defined by RUNPATH on the system running it and not be fully self-contained.
Are you willing to submit a PR?
Yes, but unfortunately I don't know TypeScript and cannot grasp the work required.
The text was updated successfully, but these errors were encountered: