dev-python/numcodecs: version bump 0.13.0#1289
Conversation
|
The reason it works when you do it manually, and not in portage probably has to do with |
Signed-off-by: Michael Schubert <mschu.dev@gmail.com>
Signed-off-by: Michael Schubert <mschu.dev@gmail.com>
|
Thanks! I was able to track it down to issues with |
I doubt |
|
I agree that this shouldn't make a difference, but I get the module import errors only when not filtering out this flag. I also tried changing the other flags ( With all (combinations of) flags the package builds and installs fine, but the error comes from: from numcodecs import zstd # success with filter-flags -pipe
# otherwise: OSError: ./zstd.cpython-312-x86_64-linux-gnu.so: undefined symbol: ZSTD_compressBlock_btopt |
|
Try with |
|
Exactly the same error with python_compile() {
LDFLAGS="-Wl,--no-as-needed" distutils-r1_python_compile
} |
| local -x DISABLE_NUMCODECS_AVX2=1 | ||
| local -x DISABLE_NUMCODECS_SSE2=1 |
There was a problem hiding this comment.
This should be conditional to CPU_FLAGS_X86_SSE2 and CPU_FLAGS_X86_AVX2
|
I was also very confused by zarr-developers/zarr-python#961 ... if you know more about it, maybe it would be worth sharing with upstream. They closed it since I stopped nagging them, but I assume it hasn't just evaporated. We can just reopen if it persists with I have logs from the various combinations here → zarr-developers/numcodecs#506 (comment) for some reason |
This is a draft PR for updating
numcodecsthat comes bundled withc-bloscand the latter includeszstd(setting aside that this shoud be unbundled)If I run:
and then, in
"${WORKDIR}/numcodecs-0.13.0-python3_12/build/lib.linux-x86_64-cpython-312/numcodecs", I get the following error importing a generated.so:This is the same error that I get when I
installthe ebuild and then try to import the package.Surprisingly, manually cloning and building the package results in a functional
.so:The
.socreated byebuildis also much smaller than by the manual build.Any ideas why this might be? Also tagging @TheChymera who submitted the ebuild initially (likely related: zarr-developers/numcodecs#506, zarr-developers/zarr-python#961)