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

--enable-shared is required by Pyinstaller #1149

Closed
ikus060 opened this issue Jul 28, 2021 · 2 comments
Closed

--enable-shared is required by Pyinstaller #1149

ikus060 opened this issue Jul 28, 2021 · 2 comments
Labels

Comments

@ikus060
Copy link

ikus060 commented Jul 28, 2021

According to PyInstaller pyinstaller/pyinstaller#6066 (comment) manylinux images could not be used to create redistributable package compatible with many linux distribution because the python provided within the images are not compiled with --enable-shared

Mostly a question or a feature request, what would be the properly way to have a "manylinux" image with --enable-shared ?

@mayeut
Copy link
Member

mayeut commented Jul 29, 2021

This was done intentionnaly for building wheels which is the use-case of manylinux images.
c.f. #255 (comment) & #30 for more details.

If I'm not mistaken, the use-case for pyinstaller only requires 1 python installation to create the "app" package.
This can be done in a "manylinux" friendly way by installing python3-devel on a CentOS base image.
CentOS 7 (base image for manylinux2014) provides 2 versions of python3:

  • 3.6.8 through yum install python3-devel
  • 3.8.6 through yum install rh-python38-python-devel (you need to enable scl-rh repo for this one: yum -y install centos-release-scl-rh)

IMHO, this is the best option for pyinstaller. It also allows not to waste bandwidth/ci time using images that are larger than necessary.

@ikus060
Copy link
Author

ikus060 commented Jul 29, 2021

Thanks alot for the information.

Will use manylinux2014 base image and install the required devel package to make it work.

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

No branches or pull requests

2 participants