Skip to content

Migrate libclang compiled libraries PyPI package to LLVM monorepo #168244

@nightlark

Description

@nightlark

This is an issue to track the things that need to happen to move the libclang PyPI package into the LLVM monorepo from its current home at https://github.com/sighingnow/libclang

The primary distinction between the libclang and clang packages on PyPI is that libclang supplies pre-compiled copies of libclang for a variety of OS/CPU combinations, and doesn't have a pure Python variant for people on unsupported platforms.

To avoid publishing duplicate bindings under different packaging, I'm thinking we can:

  • Keep the clang package as being the pure Python bindings
  • Remove the duplicate Python bindings (*.py files) that the libclang package currently bundles, making it native libraries only with clang as a dependency to supply the *.py files

This should make so existing users of each continue to get what they expect, with the libclang package continuing to act as a convenient way for users to get a "batteries included" dependency on most common platforms while consolidating the pure Python binding code into one package.

Some discussion about transferring PyPI packages to the LLVM org on PyPI can be found at: https://discourse.llvm.org/t/moving-projects-into-the-llvm-org-on-pypi/88868

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions