Open anthonycorletti opened 1 year ago
Ouch. yes that is a 'risk' we took when doing this. It has always worked with pip. I knew we didn't completely follow standards, but as long as it worked, we kept doing it. Will be a chore to fix that to make it backwards compatible. We have to rename the vaex.hdf5 package to say vaex_hdf5, and add a vaex.hdf5 package with the same module names that do sth like
# file vaex/hdf5/foo.py
from vaex_hdf5.foo import *
# file vaex_hdf5/foo.py
...
<real content>
...
We're also running into this and it is a bit of a blocker at the moment. One potential workaround would be to offer some kind of tooling to construct a custom wheel that holds all the files for a selected set of vaex packages.
Thank you for reaching out and helping us improve Vaex!
Before you submit a new Issue, please read through the documentation. Also, make sure you search through the Open and Closed Issues - your problem may already be discussed or addressed.
Description
Vaex does not work when installed with Bazel.
Software information
bazel 5.4.0
https://bazel.build/install/os-x#install-with-installer-mac-os-xvaex-core==4.16.0
vaex-hdf5==0.12.3
load("@rules_python//python:pip.bzl", "pip_parse")
13.2.1 (22D68)
Additional information I've attached a zip you can download and unzip to use to re-create the issue.
vaex_bazel_debug.zip
This zip contains the following
After you've installed bazel 5.4.0, run the following to see the module error
This is due to using init files for packages which bazel doesn't support because each package is separately created vs in site-packages style.
According to https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#creating-a-namespace-package: