On Tue, Aug 30, 2022 at 03:58:26PM +0200, PICCA Frederic-Emmanuel wrote: > Hello, I am packaging a python extension which use cmake as build system > > here the repo > > https://salsa.debian.org/science-team/dxtbx > > I try to activate the test but this cause this kind of trouble > > During handling of the above exception, another exception occurred: > /usr/lib/python3.10/importlib/__init__.py:126: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/serialize/test_xds.py:8: in <module> > from dxtbx.imageset import ImageSetFactory > dxtbx/imageset.py:5: in <module> > import dxtbx.format.image # noqa: F401, import dependency for unpickling > dxtbx/format/image.py:8: in <module> > from dxtbx_format_image_ext import * # type: ignore # isort:skip # noqa: > F403 > E ModuleNotFoundError: No module named 'dxtbx_format_image_ext' > > Indeed the extension are build here. > > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/dxtbx && /usr/bin/cmake -E > cmake_link_script CMakeFiles/dxtbx_flumpy.dir/link.txt --verbose=1 > /usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 -flto -Wl,-z,relro -shared -o > ../../lib/dxtbx_flumpy.cpython-310-x86_64-linux-gnu.so > CMakeFiles/dxtbx_flumpy.dir/boost_python/flumpy.cc.o > /usr/lib/x86_64-linux-gnu/libboost_python310.so.1.74.0 > lto-wrapper: warning: using serial compilation of 4 LTRANS jobs > lto-wrapper: note: see the ‘-flto’ option documentation for more information > [ 90%] Linking CXX shared module ../../lib/dxtbx_format_image_ext.so > > so I need to add the /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib directory to > the PYTHONPATH. > > do you know how to do this ? Does the same happen when you run the test in the source tree manually?
-- WBR, wRAR
signature.asc
Description: PGP signature