Skip to content

Clean up or rework Python package building #2445

@Rot127

Description

@Rot127

Feature

  • New architecture module
  • Support for processor extension
  • Add more instruction details (elaborated below)
  • Binding support for: language
  • Other (elaborated below)

Describe the feature you'd like

Building the Python wheel is kinda messy. Especially when it comes to cross-compilation.
The current setup.py will likely only work if host == target.

In our CI (using cibuildwheel) it sometimes doesn't pass --plat_name to bdist_wheel which we inject then.
See:
https://github.com/capstone-engine/capstone/blame/5e6807bab9ba6a8112b8ba1f92285924e699ee84/bindings/python/setup.py#L205-L211

This is of course not ok and probably breaks at some point. So we should put the effort into it and clean the whole thing up.

Additional context

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions