Open mcepl opened 4 months ago
I'm not really sure how to help here. The tests work just fine upstream, my only guess is the .so
file is not actually in the right place or something else is hiding it - the test script isn't doing anything special with PYTHONPATH
AFAICT
The tests work just fine upstream, my only guess is the
.so
file is not actually in the right place or something else is hiding it - the test script isn't doing anything special withPYTHONPATH
AFAICT
See the find
command output in the beginning of the %check
section:
[ 83s] Executing(%check): /usr/bin/bash -e /var/tmp/rpm-tmp.jfAzzf
[ 83s] + umask 022
[ 83s] + cd /home/abuild/rpmbuild/BUILD
[ 83s] + cd libcst-1.4.0
[ 83s] ++ '[' -f _current_flavor ']'
[ 83s] ++ cat _current_flavor
[ 83s] + last_flavor=python311
[ 83s] + '[' -z python311 ']'
[ 83s] + '[' python311 '!=' python310 ']'
[ 83s] + '[' -d build ']'
[ 83s] + mv build _build.python311
[ 83s] + '[' -d _build.python310 ']'
[ 83s] + mv _build.python310 build
[ 83s] + echo python310
[ 83s] + python_flavor=python310
[ 83s] + find /home/abuild/rpmbuild/BUILDROOT/python-libcst-test-1.4.0-0.x86_64/usr/lib64/python3.10/site-packages -name '*.so*'
[ 83s] /home/abuild/rpmbuild/BUILDROOT/python-libcst-test-1.4.0-0.x86_64/usr/lib64/python3.10/site-packages/libcst/native.cpython-310-x86_64-linux-gnu.so
[ 83s] ++ '[' -f _current_flavor ']'
[ 83s] ++ cat _current_flavor
[ 83s] + last_flavor=python310
[ 83s] + '[' -z python310 ']'
[ 83s] + '[' python310 '!=' python312 ']'
[ 83s] + '[' -d build ']'
[ 83s] + mv build _build.python310
[ 83s] + '[' -d _build.python312 ']'
[ 83s] + mv _build.python312 build
[ 83s] + echo python312
[ 83s] + python_flavor=python312
[ 83s] + find /home/abuild/rpmbuild/BUILDROOT/python-libcst-test-1.4.0-0.x86_64/usr/lib64/python3.12/site-packages -name '*.so*'
[ 83s] /home/abuild/rpmbuild/BUILDROOT/python-libcst-test-1.4.0-0.x86_64/usr/lib64/python3.12/site-packages/libcst/native.cpython-312-x86_64-linux-gnu.so
[ 83s] ++ '[' -f _current_flavor ']'
[ 83s] ++ cat _current_flavor
[ 83s] + last_flavor=python312
[ 83s] + '[' -z python312 ']'
[ 83s] + '[' python312 '!=' python311 ']'
[ 83s] + '[' -d build ']'
[ 83s] + mv build _build.python312
[ 83s] + '[' -d _build.python311 ']'
[ 83s] + mv _build.python311 build
[ 83s] + echo python311
[ 83s] + python_flavor=python311
[ 83s] + find /home/abuild/rpmbuild/BUILDROOT/python-libcst-test-1.4.0-0.x86_64/usr/lib64/python3.11/site-packages -name '*.so*'
[ 83s] /home/abuild/rpmbuild/BUILDROOT/python-libcst-test-1.4.0-0.x86_64/usr/lib64/python3.11/site-packages/libcst/native.cpython-311-x86_64-linux-gnu.so
[ 83s]
The library is obviously where it is supposed to be, isn’t it?
When packaging libCST for openSUSE, I fail to make running test suite. We build our packages in the network-isolated environment, and we want the simplest possible environment, so I am trying to run test suite (with installed libraries) just with (effectively):
However, even with (hopefully) correctly set
PATH
andPYTHONPATH
, 42 tests are not able to findlibcst.native
(even though the*.so
is in the right place) and error, for example:It seems that the generated test script doesn’t follow
PYTHONPATH
?Complete build log