Cirrus CI / miniconda
failed
Oct 27, 2024 in 1m 35s
Task Summary
Instruction test failed in 01:32
Details
✅ 00:00 clone
❌ 01:32 test
+ meson setup /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-hqn40ddg -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-hqn40ddg/meson-python-native-file.ini
The Meson build system
Version: 1.6.0
Source dir: /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package
Build dir: /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-hqn40ddg
Build type: native build
Project name: sharedlib-in-package
Project version: 1.0.0
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/tmp/cirrus-ci-build/env/bin/python3)
Did not find pkg-config by name 'pkg-config'
Found pkg-config: NO
Run-time dependency python found: YES 3.12
Build targets in project: 2
sharedlib-in-package 1.0.0
User defined options
Native files: /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-hqn40ddg/meson-python-native-file.ini
b_ndebug : if-release
b_vscrt : md
buildtype : release
Found ninja-1.11.1 at /usr/bin/ninja
+ /usr/bin/ninja
[1/5] Compiling C object mypkg/libexamplelib.so.p/examplelib.c.o
[2/5] Linking target mypkg/libexamplelib.so
[3/5] Compiling C object mypkg/_example.cpython-312-x86_64-linux-gnu.so.p/_examplemod.c.o
[4/5] Generating symbol file mypkg/libexamplelib.so.p/libexamplelib.so.symbols
[5/5] Linking target mypkg/_example.cpython-312-x86_64-linux-gnu.so
[1/3] /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-hqn40ddg/mypkg/libexamplelib.so
[2/3] /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-hqn40ddg/mypkg/_example.cpython-312-x86_64-linux-gnu.so
[3/3] /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/mypkg/__init__.py
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pytest-of-root/pytest-0/mesonpy-test-venv5/lib/python3.12/site-packages/mypkg/__init__.py", line 19, in <module>
_load_sharedlib()
File "/tmp/pytest-of-root/pytest-0/mesonpy-test-venv5/lib/python3.12/site-packages/mypkg/__init__.py", line 12, in _load_sharedlib
if os.name == "nt":
^^
NameError: name 'os' is not defined. Did you forget to import 'os'?
=========================== short test summary info ============================
SKIPPED [1] tests/test_project.py:204: Requires MSVC
SKIPPED [3] tests/test_project.py:216: macOS specific test
SKIPPED [2] tests/test_project.py:233: macOS specific test
SKIPPED [1] tests/test_tags.py:47: macOS specific test
SKIPPED [1] tests/test_tags.py:59: macOS specific test
SKIPPED [1] tests/test_tags.py:69: macOS specific test
SKIPPED [2] tests/test_wheel.py:257: macOS specific test
FAILED tests/test_wheel.py::test_sharedlib_in_package - subprocess.CalledProcessError: Command '['/tmp/pytest-of-root/pytest-0/mesonpy-test-venv5/bin/python3.12', '-c', 'import mypkg; print(mypkg.example_sum(2, 5))']' returned non-zero exit status 1.
============= 1 failed, 112 passed, 11 skipped in 79.14s (0:01:19) =============
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Loading