Added a test that the Python module is importable, and fixed several issues that were required to make the test pass:
1. For some reason the version script was not working, it was failing to export the main symbol for the Python extension. I fixed this by using the `visibility` attribute instead to export the `PyInit__message` function. 2. We were not properly stripping the `python/dist/` prefix for the C module, which was making the module exported under the name `dist.google._upb` instead of `google._upb`. 3. The `py_library()` rule was failing to actually propagate the module file into the wheel, so I just removed it. PiperOrigin-RevId: 445446611pull/13171/head
parent
823ed18316
commit
fbcd42b9f0
5 changed files with 10 additions and 23 deletions
Loading…
Reference in new issue