Skip to content

[BUG] windows launcher generates x86_64 binary for arm64 platform #2757

@niyas-sait

Description

@niyas-sait

setuptools version

57.4.0

Python version

3.1-

OS

Windows (ARM)

Additional environment information

No response

Description

setuptools uses cli-64.exe and gui-64.exe to generate wrapper script binaries for arm64 platform and creates x86_64 executables and they can't be executed on win/arm64 machines.

Expected behavior

setuptools should generate arm64 binaries

How to Reproduce

  1. Use example from https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html
  2. python setup.py install
  3. run hello_world.exe

Output

Program 'hello-world.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1 char:1

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.bug
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions