Skip to content

Add Universal2 versions of python for use with PyInstaller #271

Description

@cmot17

Description:
https://pyinstaller.readthedocs.io/en/stable/feature-notes.html#macos-multi-arch-support
I believe that PyInstaller supports creating universal2 binaries for MacOS from an x86 machine - it just needs to be running the universal2 version of python.
Justification:

This would be really useful to build apps compatible with Apple Silicon.

Activity

  1. nikita-bykov commented on Nov 17, 2021

    @nikita-bykov
    Contributor

    Hello @cmot17! Thanks for your feature request. We will look at it.

  2. nikita-bykov commented on Nov 19, 2021

    @nikita-bykov
    Contributor

    Hey @cmot17!
    The same feature request already exists in the virtual-environment repository: Add universal2 builds of Python to actions/setup-python #4133.
    The PR is also open for it: Compile in universal2 mode for macOS Python >= 3.9.1. #114.
    You can find more context in the links above.

  3. rtibbles commented on Aug 18, 2022

    @rtibbles

    PR actions/python-versions#114 was merged and then reverted a month later with actions/python-versions#175, so this issue could still do with being resolved.

    As it seems that some were unhappy with this being the default behaviour, it would be useful if this could be an optional flag for setup-python on MacOS runners.

  4. albertosottile commented on Aug 22, 2022

    @albertosottile

    I can confirm that this is still an outstanding issue (after the revert performed in actions/python-versions#175). Please consider this feature as its lack is preventing developers from building universal2 wheels and projects, which is what Apple recommends.

  5. albertosottile commented on Aug 22, 2022

    @albertosottile

    Further reasons for this need can be found in the original issue here: actions/runner-images#4133 This issue was closed when the feature was originally implemented, but not reopened when it was reverted.

  6. IvanZosimov commented on Nov 16, 2022

    @IvanZosimov
    Contributor

    Hi, @cmot17 👋 Starting from the Python 3.11.0-rc.2 the setup-python action installs official universal2 for macOS, so the feature you requested is implemented.

    Now, I'm going to close this issue, If you have any additional questions feel free to ping us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions