0s autopkgtest [16:03:13]: starting date and time: 2024-07-26 16:03:13+0000 0s autopkgtest [16:03:13]: git checkout: fd3bed09 nova: allow more retries for quota issues 0s autopkgtest [16:03:13]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.om767kfm/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:setuptools --apt-upgrade scikit-build --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=setuptools/70.3.0-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos01-s390x-11.secgroup --name adt-oracular-s390x-scikit-build-20240726-160313-juju-7f2275-prod-proposed-migration-environment-2-0ca461fb-9930-44f2-9c1c-a1b56092e48e --image adt/ubuntu-oracular-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://us.ports.ubuntu.com/ubuntu-ports/ 100s autopkgtest [16:04:53]: testbed dpkg architecture: s390x 101s autopkgtest [16:04:54]: testbed apt version: 2.9.6 101s autopkgtest [16:04:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup 102s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [126 kB] 102s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [8548 B] 102s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [50.6 kB] 102s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [4288 B] 102s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [436 kB] 102s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main s390x Packages [66.8 kB] 102s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main s390x c-n-f Metadata [2112 B] 102s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted s390x Packages [1368 B] 102s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted s390x c-n-f Metadata [120 B] 102s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe s390x Packages [397 kB] 102s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe s390x c-n-f Metadata [8372 B] 102s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse s390x Packages [2072 B] 102s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse s390x c-n-f Metadata [120 B] 103s Fetched 1104 kB in 1s (1397 kB/s) 103s Reading package lists... 105s Reading package lists... 106s Building dependency tree... 106s Reading state information... 106s Calculating upgrade... 106s The following packages will be upgraded: 106s bpfcc-tools bpftrace libbpfcc liblz4-1 mawk python3-bpfcc 106s python3-pkg-resources python3-setuptools 106s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 106s Need to get 18.1 MB of archives. 106s After this operation, 59.4 MB of additional disk space will be used. 106s Get:1 http://ftpmaster.internal/ubuntu oracular/main s390x liblz4-1 s390x 1.9.4-3 [75.5 kB] 106s Get:2 http://ftpmaster.internal/ubuntu oracular/main s390x mawk s390x 1.3.4.20240622-2 [132 kB] 106s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main s390x python3-setuptools all 70.3.0-2 [429 kB] 106s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/main s390x python3-pkg-resources all 70.3.0-2 [187 kB] 106s Get:5 http://ftpmaster.internal/ubuntu oracular/main s390x libbpfcc s390x 0.30.0+ds-1ubuntu2 [677 kB] 107s Get:6 http://ftpmaster.internal/ubuntu oracular/main s390x python3-bpfcc all 0.30.0+ds-1ubuntu2 [40.3 kB] 107s Get:7 http://ftpmaster.internal/ubuntu oracular/main s390x bpfcc-tools all 0.30.0+ds-1ubuntu2 [697 kB] 107s Get:8 http://ftpmaster.internal/ubuntu oracular/main s390x bpftrace s390x 0.21.0-1ubuntu6 [15.8 MB] 107s Fetched 18.1 MB in 1s (16.5 MB/s) 108s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54767 files and directories currently installed.) 108s Preparing to unpack .../liblz4-1_1.9.4-3_s390x.deb ... 108s Unpacking liblz4-1:s390x (1.9.4-3) over (1.9.4-2) ... 108s Setting up liblz4-1:s390x (1.9.4-3) ... 108s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54767 files and directories currently installed.) 108s Preparing to unpack .../0-mawk_1.3.4.20240622-2_s390x.deb ... 108s Unpacking mawk (1.3.4.20240622-2) over (1.3.4.20240622-1) ... 108s Preparing to unpack .../1-python3-setuptools_70.3.0-2_all.deb ... 108s Unpacking python3-setuptools (70.3.0-2) over (68.1.2-2ubuntu1) ... 108s Preparing to unpack .../2-python3-pkg-resources_70.3.0-2_all.deb ... 108s Unpacking python3-pkg-resources (70.3.0-2) over (68.1.2-2ubuntu1) ... 108s Preparing to unpack .../3-libbpfcc_0.30.0+ds-1ubuntu2_s390x.deb ... 108s Unpacking libbpfcc:s390x (0.30.0+ds-1ubuntu2) over (0.29.1+ds-1ubuntu7) ... 108s Preparing to unpack .../4-python3-bpfcc_0.30.0+ds-1ubuntu2_all.deb ... 108s Unpacking python3-bpfcc (0.30.0+ds-1ubuntu2) over (0.29.1+ds-1ubuntu7) ... 108s Preparing to unpack .../5-bpfcc-tools_0.30.0+ds-1ubuntu2_all.deb ... 108s Unpacking bpfcc-tools (0.30.0+ds-1ubuntu2) over (0.29.1+ds-1ubuntu7) ... 108s Preparing to unpack .../6-bpftrace_0.21.0-1ubuntu6_s390x.deb ... 108s Unpacking bpftrace (0.21.0-1ubuntu6) over (0.20.2-1ubuntu4) ... 109s Setting up python3-pkg-resources (70.3.0-2) ... 110s Setting up python3-setuptools (70.3.0-2) ... 111s Setting up mawk (1.3.4.20240622-2) ... 111s Setting up libbpfcc:s390x (0.30.0+ds-1ubuntu2) ... 111s Setting up python3-bpfcc (0.30.0+ds-1ubuntu2) ... 111s Setting up bpftrace (0.21.0-1ubuntu6) ... 111s Setting up bpfcc-tools (0.30.0+ds-1ubuntu2) ... 111s Processing triggers for man-db (2.12.1-2) ... 112s Processing triggers for libc-bin (2.39-0ubuntu9) ... 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 113s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 113s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 113s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 113s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 113s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 115s Reading package lists... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Calculating upgrade... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 116s Reading package lists... 116s Building dependency tree... 116s Reading state information... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 119s autopkgtest [16:05:12]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP Sat Apr 20 00:14:26 UTC 2024 120s autopkgtest [16:05:13]: @@@@@@@@@@@@@@@@@@@@ apt-source scikit-build 122s Get:1 http://ftpmaster.internal/ubuntu oracular/universe scikit-build 0.17.6-2 (dsc) [2777 B] 122s Get:2 http://ftpmaster.internal/ubuntu oracular/universe scikit-build 0.17.6-2 (tar) [271 kB] 122s Get:3 http://ftpmaster.internal/ubuntu oracular/universe scikit-build 0.17.6-2 (diff) [5576 B] 122s gpgv: Signature made Sat Apr 27 01:25:13 2024 UTC 122s gpgv: using RSA key 13796755BBC72BB8ABE2AEB5FA9DEC5DE11C63F1 122s gpgv: issuer "eamanu@debian.org" 122s gpgv: Can't check signature: No public key 122s dpkg-source: warning: cannot verify inline signature for ./scikit-build_0.17.6-2.dsc: no acceptable signature found 122s autopkgtest [16:05:15]: testing package scikit-build version 0.17.6-2 123s autopkgtest [16:05:16]: build not needed 126s autopkgtest [16:05:19]: test testsuite: preparing testbed 127s Reading package lists... 127s Building dependency tree... 127s Reading state information... 127s Starting pkgProblemResolver with broken count: 0 127s Starting 2 pkgProblemResolver with broken count: 0 127s Done 128s The following additional packages will be installed: 128s build-essential cmake cmake-data cpp cpp-14 cpp-14-s390x-linux-gnu 128s cpp-s390x-linux-gnu cython3 fonts-font-awesome fonts-lato g++ g++-14 128s g++-14-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-14 gcc-14-s390x-linux-gnu 128s gcc-s390x-linux-gnu git git-man libasan8 libatomic1 libcc1-0 liberror-perl 128s libexpat1-dev libgcc-14-dev libisl23 libitm1 libjs-jquery libjs-sphinxdoc 128s libjs-underscore libjsoncpp25 libmpc3 libpython3-all-dev libpython3-dev 128s libpython3.12-dev libpython3.12t64 librhash0 libstdc++-14-dev libubsan1 128s python-skbuild-doc python3-all python3-all-dev python3-build python3-dev 128s python3-distlib python3-filelock python3-iniconfig python3-packaging 128s python3-pip python3-pip-whl python3-platformdirs python3-pluggy 128s python3-pyproject-hooks python3-pytest python3-pytest-mock 128s python3-setuptools-whl python3-skbuild python3-toml python3-virtualenv 128s python3-wheel python3-wheel-whl python3.12-dev sphinx-rtd-theme-common 128s zlib1g-dev 128s Suggested packages: 128s cmake-doc cmake-format elpa-cmake-mode ninja-build cpp-doc gcc-14-locales 128s cpp-14-doc cython-doc gcc-14-doc gcc-multilib manpages-dev autoconf automake 128s libtool flex bison gdb gcc-doc gdb-s390x-linux-gnu git-daemon-run 128s | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs 128s git-mediawiki git-svn libstdc++-14-doc python3-venv python-build-doc 128s python-pytest-mock-doc 128s Recommended packages: 128s javascript-common 128s The following NEW packages will be installed: 128s autopkgtest-satdep build-essential cmake cmake-data cpp cpp-14 128s cpp-14-s390x-linux-gnu cpp-s390x-linux-gnu cython3 fonts-font-awesome 128s fonts-lato g++ g++-14 g++-14-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-14 128s gcc-14-s390x-linux-gnu gcc-s390x-linux-gnu git git-man libasan8 libatomic1 128s libcc1-0 liberror-perl libexpat1-dev libgcc-14-dev libisl23 libitm1 128s libjs-jquery libjs-sphinxdoc libjs-underscore libjsoncpp25 libmpc3 128s libpython3-all-dev libpython3-dev libpython3.12-dev libpython3.12t64 128s librhash0 libstdc++-14-dev libubsan1 python-skbuild-doc python3-all 128s python3-all-dev python3-build python3-dev python3-distlib python3-filelock 128s python3-iniconfig python3-packaging python3-pip python3-pip-whl 128s python3-platformdirs python3-pluggy python3-pyproject-hooks python3-pytest 128s python3-pytest-mock python3-setuptools-whl python3-skbuild python3-toml 128s python3-virtualenv python3-wheel python3-wheel-whl python3.12-dev 128s sphinx-rtd-theme-common zlib1g-dev 128s 0 upgraded, 66 newly installed, 0 to remove and 0 not upgraded. 128s Need to get 89.8 MB/89.8 MB of archives. 128s After this operation, 318 MB of additional disk space will be used. 128s Get:1 /tmp/autopkgtest.3YS33m/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [780 B] 128s Get:2 http://ftpmaster.internal/ubuntu oracular/main s390x fonts-lato all 2.015-1 [2781 kB] 128s Get:3 http://ftpmaster.internal/ubuntu oracular/main s390x libisl23 s390x 0.26-3build1 [713 kB] 129s Get:4 http://ftpmaster.internal/ubuntu oracular/main s390x libmpc3 s390x 1.3.1-1build1 [58.4 kB] 129s Get:5 http://ftpmaster.internal/ubuntu oracular/main s390x cpp-14-s390x-linux-gnu s390x 14.1.0-5ubuntu1 [9572 kB] 129s Get:6 http://ftpmaster.internal/ubuntu oracular/main s390x cpp-14 s390x 14.1.0-5ubuntu1 [1028 B] 129s Get:7 http://ftpmaster.internal/ubuntu oracular/main s390x cpp-s390x-linux-gnu s390x 4:14.1.0-2ubuntu1 [5452 B] 129s Get:8 http://ftpmaster.internal/ubuntu oracular/main s390x cpp s390x 4:14.1.0-2ubuntu1 [22.4 kB] 129s Get:9 http://ftpmaster.internal/ubuntu oracular/main s390x libcc1-0 s390x 14.1.0-5ubuntu1 [50.6 kB] 129s Get:10 http://ftpmaster.internal/ubuntu oracular/main s390x libitm1 s390x 14.1.0-5ubuntu1 [30.9 kB] 129s Get:11 http://ftpmaster.internal/ubuntu oracular/main s390x libatomic1 s390x 14.1.0-5ubuntu1 [9432 B] 129s Get:12 http://ftpmaster.internal/ubuntu oracular/main s390x libasan8 s390x 14.1.0-5ubuntu1 [2965 kB] 129s Get:13 http://ftpmaster.internal/ubuntu oracular/main s390x libubsan1 s390x 14.1.0-5ubuntu1 [1184 kB] 129s Get:14 http://ftpmaster.internal/ubuntu oracular/main s390x libgcc-14-dev s390x 14.1.0-5ubuntu1 [1036 kB] 129s Get:15 http://ftpmaster.internal/ubuntu oracular/main s390x gcc-14-s390x-linux-gnu s390x 14.1.0-5ubuntu1 [18.7 MB] 130s Get:16 http://ftpmaster.internal/ubuntu oracular/main s390x gcc-14 s390x 14.1.0-5ubuntu1 [506 kB] 130s Get:17 http://ftpmaster.internal/ubuntu oracular/main s390x gcc-s390x-linux-gnu s390x 4:14.1.0-2ubuntu1 [1204 B] 130s Get:18 http://ftpmaster.internal/ubuntu oracular/main s390x gcc s390x 4:14.1.0-2ubuntu1 [4996 B] 130s Get:19 http://ftpmaster.internal/ubuntu oracular/main s390x libstdc++-14-dev s390x 14.1.0-5ubuntu1 [2578 kB] 131s Get:20 http://ftpmaster.internal/ubuntu oracular/main s390x g++-14-s390x-linux-gnu s390x 14.1.0-5ubuntu1 [11.0 MB] 131s Get:21 http://ftpmaster.internal/ubuntu oracular/main s390x g++-14 s390x 14.1.0-5ubuntu1 [18.0 kB] 131s Get:22 http://ftpmaster.internal/ubuntu oracular/main s390x g++-s390x-linux-gnu s390x 4:14.1.0-2ubuntu1 [956 B] 131s Get:23 http://ftpmaster.internal/ubuntu oracular/main s390x g++ s390x 4:14.1.0-2ubuntu1 [1076 B] 131s Get:24 http://ftpmaster.internal/ubuntu oracular/main s390x build-essential s390x 12.10ubuntu1 [4930 B] 131s Get:25 http://ftpmaster.internal/ubuntu oracular/main s390x libjsoncpp25 s390x 1.9.5-6build1 [82.5 kB] 131s Get:26 http://ftpmaster.internal/ubuntu oracular/main s390x librhash0 s390x 1.4.3-3build1 [133 kB] 131s Get:27 http://ftpmaster.internal/ubuntu oracular/main s390x cmake-data all 3.29.6-1 [2193 kB] 131s Get:28 http://ftpmaster.internal/ubuntu oracular/main s390x cmake s390x 3.29.6-1 [11.7 MB] 132s Get:29 http://ftpmaster.internal/ubuntu oracular/universe s390x cython3 s390x 3.0.10+dfsg-5ubuntu1 [2472 kB] 132s Get:30 http://ftpmaster.internal/ubuntu oracular/main s390x fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 132s Get:31 http://ftpmaster.internal/ubuntu oracular/main s390x liberror-perl all 0.17029-2 [25.6 kB] 132s Get:32 http://ftpmaster.internal/ubuntu oracular/main s390x git-man all 1:2.45.2-1ubuntu1 [1122 kB] 132s Get:33 http://ftpmaster.internal/ubuntu oracular/main s390x git s390x 1:2.45.2-1ubuntu1 [4071 kB] 133s Get:34 http://ftpmaster.internal/ubuntu oracular/main s390x libexpat1-dev s390x 2.6.2-1 [146 kB] 133s Get:35 http://ftpmaster.internal/ubuntu oracular/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 133s Get:36 http://ftpmaster.internal/ubuntu oracular/main s390x libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 133s Get:37 http://ftpmaster.internal/ubuntu oracular/main s390x libjs-sphinxdoc all 7.3.7-3 [154 kB] 133s Get:38 http://ftpmaster.internal/ubuntu oracular/main s390x libpython3.12t64 s390x 3.12.4-1ubuntu1 [2476 kB] 133s Get:39 http://ftpmaster.internal/ubuntu oracular/main s390x zlib1g-dev s390x 1:1.3.dfsg-3.1ubuntu2 [904 kB] 133s Get:40 http://ftpmaster.internal/ubuntu oracular/main s390x libpython3.12-dev s390x 3.12.4-1ubuntu1 [5796 kB] 133s Get:41 http://ftpmaster.internal/ubuntu oracular/main s390x libpython3-dev s390x 3.12.3-0ubuntu1 [10.2 kB] 133s Get:42 http://ftpmaster.internal/ubuntu oracular/main s390x libpython3-all-dev s390x 3.12.3-0ubuntu1 [916 B] 133s Get:43 http://ftpmaster.internal/ubuntu oracular/main s390x sphinx-rtd-theme-common all 2.0.0+dfsg-2 [1012 kB] 133s Get:44 http://ftpmaster.internal/ubuntu oracular/universe s390x python-skbuild-doc all 0.17.6-2 [135 kB] 133s Get:45 http://ftpmaster.internal/ubuntu oracular/main s390x python3-all s390x 3.12.3-0ubuntu1 [890 B] 133s Get:46 http://ftpmaster.internal/ubuntu oracular/main s390x python3.12-dev s390x 3.12.4-1ubuntu1 [498 kB] 133s Get:47 http://ftpmaster.internal/ubuntu oracular/main s390x python3-dev s390x 3.12.3-0ubuntu1 [26.7 kB] 133s Get:48 http://ftpmaster.internal/ubuntu oracular/main s390x python3-all-dev s390x 3.12.3-0ubuntu1 [914 B] 133s Get:49 http://ftpmaster.internal/ubuntu oracular/main s390x python3-packaging all 24.1-1 [41.4 kB] 133s Get:50 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pyproject-hooks all 1.1.0-2 [9916 B] 133s Get:51 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-toml all 0.10.2-1 [16.5 kB] 133s Get:52 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-wheel all 0.43.0-1 [53.5 kB] 133s Get:53 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-build all 1.2.1-1 [29.7 kB] 133s Get:54 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-distlib all 0.3.8-1 [318 kB] 133s Get:55 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-filelock all 3.15.4-1 [12.8 kB] 133s Get:56 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 133s Get:57 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pip all 24.1.1+dfsg-1 [1400 kB] 133s Get:58 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pip-whl all 24.1.1+dfsg-1 [1427 kB] 134s Get:59 http://ftpmaster.internal/ubuntu oracular/main s390x python3-platformdirs all 4.2.1-1 [16.3 kB] 134s Get:60 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 134s Get:61 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pytest all 7.4.4-1 [305 kB] 134s Get:62 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-pytest-mock all 3.14.0-1 [11.6 kB] 134s Get:63 http://ftpmaster.internal/ubuntu oracular-proposed/universe s390x python3-setuptools-whl all 70.3.0-2 [762 kB] 134s Get:64 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-skbuild all 0.17.6-2 [59.1 kB] 134s Get:65 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-wheel-whl all 0.43.0-1 [68.2 kB] 134s Get:66 http://ftpmaster.internal/ubuntu oracular/universe s390x python3-virtualenv all 20.26.2+ds-1 [71.6 kB] 134s Fetched 89.8 MB in 6s (15.2 MB/s) 134s Selecting previously unselected package fonts-lato. 134s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 54834 files and directories currently installed.) 134s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 134s Unpacking fonts-lato (2.015-1) ... 134s Selecting previously unselected package libisl23:s390x. 134s Preparing to unpack .../01-libisl23_0.26-3build1_s390x.deb ... 134s Unpacking libisl23:s390x (0.26-3build1) ... 134s Selecting previously unselected package libmpc3:s390x. 134s Preparing to unpack .../02-libmpc3_1.3.1-1build1_s390x.deb ... 134s Unpacking libmpc3:s390x (1.3.1-1build1) ... 134s Selecting previously unselected package cpp-14-s390x-linux-gnu. 134s Preparing to unpack .../03-cpp-14-s390x-linux-gnu_14.1.0-5ubuntu1_s390x.deb ... 134s Unpacking cpp-14-s390x-linux-gnu (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package cpp-14. 135s Preparing to unpack .../04-cpp-14_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking cpp-14 (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package cpp-s390x-linux-gnu. 135s Preparing to unpack .../05-cpp-s390x-linux-gnu_4%3a14.1.0-2ubuntu1_s390x.deb ... 135s Unpacking cpp-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 135s Selecting previously unselected package cpp. 135s Preparing to unpack .../06-cpp_4%3a14.1.0-2ubuntu1_s390x.deb ... 135s Unpacking cpp (4:14.1.0-2ubuntu1) ... 135s Selecting previously unselected package libcc1-0:s390x. 135s Preparing to unpack .../07-libcc1-0_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking libcc1-0:s390x (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package libitm1:s390x. 135s Preparing to unpack .../08-libitm1_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking libitm1:s390x (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package libatomic1:s390x. 135s Preparing to unpack .../09-libatomic1_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking libatomic1:s390x (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package libasan8:s390x. 135s Preparing to unpack .../10-libasan8_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking libasan8:s390x (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package libubsan1:s390x. 135s Preparing to unpack .../11-libubsan1_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking libubsan1:s390x (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package libgcc-14-dev:s390x. 135s Preparing to unpack .../12-libgcc-14-dev_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking libgcc-14-dev:s390x (14.1.0-5ubuntu1) ... 135s Selecting previously unselected package gcc-14-s390x-linux-gnu. 135s Preparing to unpack .../13-gcc-14-s390x-linux-gnu_14.1.0-5ubuntu1_s390x.deb ... 135s Unpacking gcc-14-s390x-linux-gnu (14.1.0-5ubuntu1) ... 136s Selecting previously unselected package gcc-14. 136s Preparing to unpack .../14-gcc-14_14.1.0-5ubuntu1_s390x.deb ... 136s Unpacking gcc-14 (14.1.0-5ubuntu1) ... 136s Selecting previously unselected package gcc-s390x-linux-gnu. 136s Preparing to unpack .../15-gcc-s390x-linux-gnu_4%3a14.1.0-2ubuntu1_s390x.deb ... 136s Unpacking gcc-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 136s Selecting previously unselected package gcc. 136s Preparing to unpack .../16-gcc_4%3a14.1.0-2ubuntu1_s390x.deb ... 136s Unpacking gcc (4:14.1.0-2ubuntu1) ... 136s Selecting previously unselected package libstdc++-14-dev:s390x. 136s Preparing to unpack .../17-libstdc++-14-dev_14.1.0-5ubuntu1_s390x.deb ... 136s Unpacking libstdc++-14-dev:s390x (14.1.0-5ubuntu1) ... 136s Selecting previously unselected package g++-14-s390x-linux-gnu. 136s Preparing to unpack .../18-g++-14-s390x-linux-gnu_14.1.0-5ubuntu1_s390x.deb ... 136s Unpacking g++-14-s390x-linux-gnu (14.1.0-5ubuntu1) ... 136s Selecting previously unselected package g++-14. 136s Preparing to unpack .../19-g++-14_14.1.0-5ubuntu1_s390x.deb ... 136s Unpacking g++-14 (14.1.0-5ubuntu1) ... 136s Selecting previously unselected package g++-s390x-linux-gnu. 136s Preparing to unpack .../20-g++-s390x-linux-gnu_4%3a14.1.0-2ubuntu1_s390x.deb ... 136s Unpacking g++-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 136s Selecting previously unselected package g++. 136s Preparing to unpack .../21-g++_4%3a14.1.0-2ubuntu1_s390x.deb ... 136s Unpacking g++ (4:14.1.0-2ubuntu1) ... 136s Selecting previously unselected package build-essential. 136s Preparing to unpack .../22-build-essential_12.10ubuntu1_s390x.deb ... 136s Unpacking build-essential (12.10ubuntu1) ... 136s Selecting previously unselected package libjsoncpp25:s390x. 136s Preparing to unpack .../23-libjsoncpp25_1.9.5-6build1_s390x.deb ... 136s Unpacking libjsoncpp25:s390x (1.9.5-6build1) ... 136s Selecting previously unselected package librhash0:s390x. 136s Preparing to unpack .../24-librhash0_1.4.3-3build1_s390x.deb ... 136s Unpacking librhash0:s390x (1.4.3-3build1) ... 136s Selecting previously unselected package cmake-data. 136s Preparing to unpack .../25-cmake-data_3.29.6-1_all.deb ... 136s Unpacking cmake-data (3.29.6-1) ... 136s Selecting previously unselected package cmake. 136s Preparing to unpack .../26-cmake_3.29.6-1_s390x.deb ... 136s Unpacking cmake (3.29.6-1) ... 137s Selecting previously unselected package cython3. 137s Preparing to unpack .../27-cython3_3.0.10+dfsg-5ubuntu1_s390x.deb ... 137s Unpacking cython3 (3.0.10+dfsg-5ubuntu1) ... 137s Selecting previously unselected package fonts-font-awesome. 137s Preparing to unpack .../28-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 137s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 137s Selecting previously unselected package liberror-perl. 137s Preparing to unpack .../29-liberror-perl_0.17029-2_all.deb ... 137s Unpacking liberror-perl (0.17029-2) ... 137s Selecting previously unselected package git-man. 137s Preparing to unpack .../30-git-man_1%3a2.45.2-1ubuntu1_all.deb ... 137s Unpacking git-man (1:2.45.2-1ubuntu1) ... 137s Selecting previously unselected package git. 137s Preparing to unpack .../31-git_1%3a2.45.2-1ubuntu1_s390x.deb ... 137s Unpacking git (1:2.45.2-1ubuntu1) ... 137s Selecting previously unselected package libexpat1-dev:s390x. 137s Preparing to unpack .../32-libexpat1-dev_2.6.2-1_s390x.deb ... 137s Unpacking libexpat1-dev:s390x (2.6.2-1) ... 137s Selecting previously unselected package libjs-jquery. 137s Preparing to unpack .../33-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 137s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 137s Selecting previously unselected package libjs-underscore. 137s Preparing to unpack .../34-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 137s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 137s Selecting previously unselected package libjs-sphinxdoc. 137s Preparing to unpack .../35-libjs-sphinxdoc_7.3.7-3_all.deb ... 137s Unpacking libjs-sphinxdoc (7.3.7-3) ... 137s Selecting previously unselected package libpython3.12t64:s390x. 137s Preparing to unpack .../36-libpython3.12t64_3.12.4-1ubuntu1_s390x.deb ... 137s Unpacking libpython3.12t64:s390x (3.12.4-1ubuntu1) ... 138s Selecting previously unselected package zlib1g-dev:s390x. 138s Preparing to unpack .../37-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu2_s390x.deb ... 138s Unpacking zlib1g-dev:s390x (1:1.3.dfsg-3.1ubuntu2) ... 138s Selecting previously unselected package libpython3.12-dev:s390x. 138s Preparing to unpack .../38-libpython3.12-dev_3.12.4-1ubuntu1_s390x.deb ... 138s Unpacking libpython3.12-dev:s390x (3.12.4-1ubuntu1) ... 138s Selecting previously unselected package libpython3-dev:s390x. 138s Preparing to unpack .../39-libpython3-dev_3.12.3-0ubuntu1_s390x.deb ... 138s Unpacking libpython3-dev:s390x (3.12.3-0ubuntu1) ... 138s Selecting previously unselected package libpython3-all-dev:s390x. 138s Preparing to unpack .../40-libpython3-all-dev_3.12.3-0ubuntu1_s390x.deb ... 138s Unpacking libpython3-all-dev:s390x (3.12.3-0ubuntu1) ... 138s Selecting previously unselected package sphinx-rtd-theme-common. 138s Preparing to unpack .../41-sphinx-rtd-theme-common_2.0.0+dfsg-2_all.deb ... 138s Unpacking sphinx-rtd-theme-common (2.0.0+dfsg-2) ... 138s Selecting previously unselected package python-skbuild-doc. 138s Preparing to unpack .../42-python-skbuild-doc_0.17.6-2_all.deb ... 138s Unpacking python-skbuild-doc (0.17.6-2) ... 138s Selecting previously unselected package python3-all. 138s Preparing to unpack .../43-python3-all_3.12.3-0ubuntu1_s390x.deb ... 138s Unpacking python3-all (3.12.3-0ubuntu1) ... 138s Selecting previously unselected package python3.12-dev. 138s Preparing to unpack .../44-python3.12-dev_3.12.4-1ubuntu1_s390x.deb ... 138s Unpacking python3.12-dev (3.12.4-1ubuntu1) ... 138s Selecting previously unselected package python3-dev. 138s Preparing to unpack .../45-python3-dev_3.12.3-0ubuntu1_s390x.deb ... 138s Unpacking python3-dev (3.12.3-0ubuntu1) ... 138s Selecting previously unselected package python3-all-dev. 138s Preparing to unpack .../46-python3-all-dev_3.12.3-0ubuntu1_s390x.deb ... 138s Unpacking python3-all-dev (3.12.3-0ubuntu1) ... 138s Selecting previously unselected package python3-packaging. 138s Preparing to unpack .../47-python3-packaging_24.1-1_all.deb ... 138s Unpacking python3-packaging (24.1-1) ... 138s Selecting previously unselected package python3-pyproject-hooks. 138s Preparing to unpack .../48-python3-pyproject-hooks_1.1.0-2_all.deb ... 138s Unpacking python3-pyproject-hooks (1.1.0-2) ... 138s Selecting previously unselected package python3-toml. 138s Preparing to unpack .../49-python3-toml_0.10.2-1_all.deb ... 138s Unpacking python3-toml (0.10.2-1) ... 138s Selecting previously unselected package python3-wheel. 138s Preparing to unpack .../50-python3-wheel_0.43.0-1_all.deb ... 138s Unpacking python3-wheel (0.43.0-1) ... 138s Selecting previously unselected package python3-build. 138s Preparing to unpack .../51-python3-build_1.2.1-1_all.deb ... 138s Unpacking python3-build (1.2.1-1) ... 138s Selecting previously unselected package python3-distlib. 138s Preparing to unpack .../52-python3-distlib_0.3.8-1_all.deb ... 138s Unpacking python3-distlib (0.3.8-1) ... 138s Selecting previously unselected package python3-filelock. 138s Preparing to unpack .../53-python3-filelock_3.15.4-1_all.deb ... 138s Unpacking python3-filelock (3.15.4-1) ... 138s Selecting previously unselected package python3-iniconfig. 138s Preparing to unpack .../54-python3-iniconfig_1.1.1-2_all.deb ... 138s Unpacking python3-iniconfig (1.1.1-2) ... 138s Selecting previously unselected package python3-pip. 138s Preparing to unpack .../55-python3-pip_24.1.1+dfsg-1_all.deb ... 138s Unpacking python3-pip (24.1.1+dfsg-1) ... 138s Selecting previously unselected package python3-pip-whl. 138s Preparing to unpack .../56-python3-pip-whl_24.1.1+dfsg-1_all.deb ... 138s Unpacking python3-pip-whl (24.1.1+dfsg-1) ... 138s Selecting previously unselected package python3-platformdirs. 138s Preparing to unpack .../57-python3-platformdirs_4.2.1-1_all.deb ... 138s Unpacking python3-platformdirs (4.2.1-1) ... 138s Selecting previously unselected package python3-pluggy. 138s Preparing to unpack .../58-python3-pluggy_1.5.0-1_all.deb ... 138s Unpacking python3-pluggy (1.5.0-1) ... 138s Selecting previously unselected package python3-pytest. 138s Preparing to unpack .../59-python3-pytest_7.4.4-1_all.deb ... 138s Unpacking python3-pytest (7.4.4-1) ... 139s Selecting previously unselected package python3-pytest-mock. 139s Preparing to unpack .../60-python3-pytest-mock_3.14.0-1_all.deb ... 139s Unpacking python3-pytest-mock (3.14.0-1) ... 139s Selecting previously unselected package python3-setuptools-whl. 139s Preparing to unpack .../61-python3-setuptools-whl_70.3.0-2_all.deb ... 139s Unpacking python3-setuptools-whl (70.3.0-2) ... 139s Selecting previously unselected package python3-skbuild. 139s Preparing to unpack .../62-python3-skbuild_0.17.6-2_all.deb ... 139s Unpacking python3-skbuild (0.17.6-2) ... 139s Selecting previously unselected package python3-wheel-whl. 139s Preparing to unpack .../63-python3-wheel-whl_0.43.0-1_all.deb ... 139s Unpacking python3-wheel-whl (0.43.0-1) ... 139s Selecting previously unselected package python3-virtualenv. 139s Preparing to unpack .../64-python3-virtualenv_20.26.2+ds-1_all.deb ... 139s Unpacking python3-virtualenv (20.26.2+ds-1) ... 139s Selecting previously unselected package autopkgtest-satdep. 139s Preparing to unpack .../65-1-autopkgtest-satdep.deb ... 139s Unpacking autopkgtest-satdep (0) ... 139s Setting up python3-iniconfig (1.1.1-2) ... 139s Setting up python3-setuptools-whl (70.3.0-2) ... 139s Setting up python3-filelock (3.15.4-1) ... 139s Setting up fonts-lato (2.015-1) ... 139s Setting up python3-pip-whl (24.1.1+dfsg-1) ... 139s Setting up python3-all (3.12.3-0ubuntu1) ... 139s Setting up python3-distlib (0.3.8-1) ... 139s Setting up python3-wheel (0.43.0-1) ... 139s Setting up python3-platformdirs (4.2.1-1) ... 140s Setting up liberror-perl (0.17029-2) ... 140s Setting up libpython3.12t64:s390x (3.12.4-1ubuntu1) ... 140s Setting up python3-packaging (24.1-1) ... 140s Setting up libexpat1-dev:s390x (2.6.2-1) ... 140s Setting up python3-pyproject-hooks (1.1.0-2) ... 140s Setting up libmpc3:s390x (1.3.1-1build1) ... 140s Setting up libatomic1:s390x (14.1.0-5ubuntu1) ... 140s Setting up cython3 (3.0.10+dfsg-5ubuntu1) ... 141s Setting up libjsoncpp25:s390x (1.9.5-6build1) ... 141s Setting up python3-pip (24.1.1+dfsg-1) ... 142s Setting up python3-toml (0.10.2-1) ... 142s Setting up python3-pluggy (1.5.0-1) ... 142s Setting up libubsan1:s390x (14.1.0-5ubuntu1) ... 142s Setting up zlib1g-dev:s390x (1:1.3.dfsg-3.1ubuntu2) ... 142s Setting up librhash0:s390x (1.4.3-3build1) ... 142s Setting up libasan8:s390x (14.1.0-5ubuntu1) ... 142s Setting up git-man (1:2.45.2-1ubuntu1) ... 142s Setting up cmake-data (3.29.6-1) ... 142s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 142s Setting up libisl23:s390x (0.26-3build1) ... 142s Setting up python3-build (1.2.1-1) ... 143s Setting up python3-wheel-whl (0.43.0-1) ... 143s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 143s Setting up sphinx-rtd-theme-common (2.0.0+dfsg-2) ... 143s Setting up libcc1-0:s390x (14.1.0-5ubuntu1) ... 143s Setting up libitm1:s390x (14.1.0-5ubuntu1) ... 143s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 143s Setting up python3-pytest (7.4.4-1) ... 143s Setting up python3-virtualenv (20.26.2+ds-1) ... 144s Setting up libpython3.12-dev:s390x (3.12.4-1ubuntu1) ... 144s Setting up python3.12-dev (3.12.4-1ubuntu1) ... 144s Setting up git (1:2.45.2-1ubuntu1) ... 144s Setting up libjs-sphinxdoc (7.3.7-3) ... 144s Setting up cpp-14-s390x-linux-gnu (14.1.0-5ubuntu1) ... 144s Setting up cpp-14 (14.1.0-5ubuntu1) ... 144s Setting up python3-pytest-mock (3.14.0-1) ... 144s Setting up cmake (3.29.6-1) ... 144s Setting up libgcc-14-dev:s390x (14.1.0-5ubuntu1) ... 144s Setting up libstdc++-14-dev:s390x (14.1.0-5ubuntu1) ... 144s Setting up libpython3-dev:s390x (3.12.3-0ubuntu1) ... 144s Setting up python-skbuild-doc (0.17.6-2) ... 144s Setting up cpp-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 144s Setting up python3-skbuild (0.17.6-2) ... 144s Setting up gcc-14-s390x-linux-gnu (14.1.0-5ubuntu1) ... 144s Setting up gcc-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 144s Setting up libpython3-all-dev:s390x (3.12.3-0ubuntu1) ... 144s Setting up python3-dev (3.12.3-0ubuntu1) ... 144s Setting up g++-14-s390x-linux-gnu (14.1.0-5ubuntu1) ... 144s Setting up cpp (4:14.1.0-2ubuntu1) ... 144s Setting up python3-all-dev (3.12.3-0ubuntu1) ... 144s Setting up g++-s390x-linux-gnu (4:14.1.0-2ubuntu1) ... 144s Setting up gcc-14 (14.1.0-5ubuntu1) ... 144s Setting up g++-14 (14.1.0-5ubuntu1) ... 144s Setting up gcc (4:14.1.0-2ubuntu1) ... 144s Setting up g++ (4:14.1.0-2ubuntu1) ... 144s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 144s Setting up build-essential (12.10ubuntu1) ... 144s Setting up autopkgtest-satdep (0) ... 144s Processing triggers for man-db (2.12.1-2) ... 145s Processing triggers for libc-bin (2.39-0ubuntu9) ... 148s (Reading database ... 62782 files and directories currently installed.) 148s Removing autopkgtest-satdep (0) ... 149s autopkgtest [16:05:42]: test testsuite: [----------------------- 150s + cp -r tests /tmp/autopkgtest.3YS33m/autopkgtest_tmp 150s + cp pyproject.toml /tmp/autopkgtest.3YS33m/autopkgtest_tmp 150s + cd /tmp/autopkgtest.3YS33m/autopkgtest_tmp 150s + py3versions -s 150s + python3.12 -m pytest -W ignore::DeprecationWarning -k not test_hello_sdist and not test_hello_sdist_with_base and not test_sdist_with_symlinks and not test_manifest_in_sdist and not test_generator_cleanup and not test_fortran and not test_pep518_findpython and not test_pep518 and not test_dual_pep518 and not test_hello_develop and not test_install_command and not test_help_commands and not test_test_command and not test_source_distribution and not test_wheel --ignore=tests/test_distribution.py 151s ============================= test session starts ============================== 151s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 151s installed packages of interest: build==1.2.1 distro==1.9.0 packaging==24.1 pip==24.1.1 scikit-build==0.17.6 setuptools==70.3.0 virtualenv==20.26.2 wheel==0.43.0 151s rootdir: /tmp/autopkgtest.3YS33m/autopkgtest_tmp 151s configfile: pyproject.toml 151s testpaths: tests 151s plugins: mock-3.14.0 151s collected 241 items / 19 deselected / 1 skipped / 222 selected 151s 154s tests/test_broken_project.py ....... [ 3%] 154s tests/test_cmake_target.py . [ 3%] 156s tests/test_cmakelists_not_in_top_level_dir.py F... [ 5%] 161s tests/test_cmaker.py ............... [ 12%] 164s tests/test_command_line.py .......FFFF.. [ 18%] 164s tests/test_constants.py . [ 18%] 167s tests/test_cython_flags.py F [ 18%] 168s tests/test_filter_manifest.py F [ 19%] 179s tests/test_hello_cpp.py FFFFF [ 21%] 186s tests/test_hello_cython.py FFF [ 22%] 187s tests/test_hello_pure.py FFFF [ 24%] 188s tests/test_include_exclude_data.py FF [ 25%] 190s tests/test_issue284_build_ext_inplace.py F [ 26%] 191s tests/test_issue335_support_cmake_source_dir.py F [ 26%] 192s tests/test_issue342_cmake_osx_args_in_setup.py ......... [ 30%] 192s tests/test_issue352_isolated_environment_support.py . [ 31%] 197s tests/test_issue668_symbol_visibility.py FF [ 31%] 197s tests/test_logging.py .. [ 32%] 197s tests/test_manifest_in.py F [ 33%] 198s tests/test_outside_project_root.py ... [ 34%] 199s tests/test_platform.py .............s [ 40%] 214s tests/test_setup.py .FF......FFF..FFFF.................................. [ 64%] 221s ..........sss.sss.sss.sss.sss.sss.sss.sssFF... [ 85%] 225s tests/test_skbuild.py .sF..ssss [ 89%] 226s tests/test_skbuild_variable.py .FF [ 90%] 226s tests/test_utils.py ..................... [100%] 226s 226s =================================== FAILURES =================================== 226s __________________________________ test_build __________________________________ 226s 226s iargs = () 226s ikwargs = {'capsys': <_pytest.capture.CaptureFixture object at 0x3ff868a7da0>} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {'capsys': <_pytest.capture.CaptureFixture object at 0x3ff868a7da0>} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-8/test_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff860a8b30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e2a200> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-8/test_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff860a8b30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e2a200> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = 'hello' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (CMakeLists not in top-level dir)', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'hello' 226s package_data = {'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'hello/__init__.py', 'hello/__main__.py']} 226s package_dir = {'hello': 'hello'} 226s package_prefixes = [('hello', 'hello')] 226s packages = ['hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (CMakeLists not in top-level dir)', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (CMakeLists not in top-level dir)', ...} 226s dist = .BinaryDistribution object at 0x3ff85e637a0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85e637a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85e637a0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85e637a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85e637a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85e637a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85e637a0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s modules = [('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py'), ('hello', '__main__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-8/test_build0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-8/test_build0/.git/ 226s [master (root-commit) 770e541] Initial commit 226s 5 files changed, 94 insertions(+) 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 setup.py 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-8/test_build0/_cmake_test_compile/build 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-8/test_build0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-8/test_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-8/test_build0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-8/test_build0/hello -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-8/test_build0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ________________________ test_hide_listing[True-sdist] _________________________ 226s 226s action = 'sdist', hide_listing = True 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85e7a360> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85e7b260> 226s 226s @pytest.mark.parametrize("action", ["sdist", "bdist_wheel"]) 226s @pytest.mark.parametrize("hide_listing", [True, False]) 226s def test_hide_listing(action, hide_listing, capfd, caplog): 226s cmd = [action] 226s if hide_listing: 226s cmd.insert(0, "--hide-listing") 226s 226s @project_setup_py_test("test-hide-listing", cmd, verbose_git=False, disable_languages_test=True) 226s def run(): 226s pass 226s 226s > run() 226s 226s action = 'sdist' 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85e7a360> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85e7b260> 226s cmd = ['--hide-listing', 'sdist'] 226s hide_listing = True 226s run = .run at 0x3ff85d634c0> 226s 226s tests/test_command_line.py:154: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = True 226s fun = .run at 0x3ff85d623e0> 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = .run at 0x3ff85d634c0> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-28/run0') 226s setup = 226s setup_args = ['--hide-listing', 'sdist'] 226s setup_code = at 0x3ff85d38be0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85d625c0> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-28/run0') 226s setup = 226s setup_args = ['--hide-listing', 'sdist'] 226s setup_code = at 0x3ff85d38be0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85d625c0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['sdist'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = 1 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'hello.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'hello.egg-info', mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-28/run0/hello.egg-info' 226s created_dirs = ['hello.egg-info'] 226s d = 'hello.egg-info' 226s dry_run = False 226s head = 'hello.egg-info' 226s mode = 511 226s name = 'hello.egg-info' 226s tail = 'hello.egg-info' 226s tails = ['hello.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating hello.egg-info 226s _____________________ test_hide_listing[True-bdist_wheel] ______________________ 226s 226s action = 'bdist_wheel', hide_listing = True 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85e929c0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85d66690> 226s 226s @pytest.mark.parametrize("action", ["sdist", "bdist_wheel"]) 226s @pytest.mark.parametrize("hide_listing", [True, False]) 226s def test_hide_listing(action, hide_listing, capfd, caplog): 226s cmd = [action] 226s if hide_listing: 226s cmd.insert(0, "--hide-listing") 226s 226s @project_setup_py_test("test-hide-listing", cmd, verbose_git=False, disable_languages_test=True) 226s def run(): 226s pass 226s 226s > run() 226s 226s action = 'bdist_wheel' 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85e929c0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85d66690> 226s cmd = ['--hide-listing', 'bdist_wheel'] 226s hide_listing = True 226s run = .run at 0x3ff85d63e20> 226s 226s tests/test_command_line.py:154: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = True 226s fun = .run at 0x3ff85d63ce0> 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = .run at 0x3ff85d63e20> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-29/run0') 226s setup = 226s setup_args = ['--hide-listing', 'bdist_wheel'] 226s setup_code = at 0x3ff85d3a560, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e6d580> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-29/run0') 226s setup = 226s setup_args = ['--hide-listing', 'bdist_wheel'] 226s setup_code = at 0x3ff85d3a560, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e6d580> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = 1 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85e7a4e0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85e20360> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85e7a4e0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-29/run0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-29/run0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-29/run0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-29/run0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-29/run0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-29/run0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-29/run0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-29/run0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s ________________________ test_hide_listing[False-sdist] ________________________ 226s 226s action = 'sdist', hide_listing = False 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff861b4110> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff861b4170> 226s 226s @pytest.mark.parametrize("action", ["sdist", "bdist_wheel"]) 226s @pytest.mark.parametrize("hide_listing", [True, False]) 226s def test_hide_listing(action, hide_listing, capfd, caplog): 226s cmd = [action] 226s if hide_listing: 226s cmd.insert(0, "--hide-listing") 226s 226s @project_setup_py_test("test-hide-listing", cmd, verbose_git=False, disable_languages_test=True) 226s def run(): 226s pass 226s 226s > run() 226s 226s action = 'sdist' 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff861b4110> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff861b4170> 226s cmd = ['sdist'] 226s hide_listing = False 226s run = .run at 0x3ff85d63f60> 226s 226s tests/test_command_line.py:154: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = True 226s fun = .run at 0x3ff85d63060> 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = .run at 0x3ff85d63f60> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-30/run0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85d38360, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85d62ac0> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-30/run0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85d38360, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85d62ac0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['sdist'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'hello.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'hello.egg-info', mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-30/run0/hello.egg-info' 226s created_dirs = ['hello.egg-info'] 226s d = 'hello.egg-info' 226s dry_run = False 226s head = 'hello.egg-info' 226s mode = 511 226s name = 'hello.egg-info' 226s tail = 'hello.egg-info' 226s tails = ['hello.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating hello.egg-info 226s _____________________ test_hide_listing[False-bdist_wheel] _____________________ 226s 226s action = 'bdist_wheel', hide_listing = False 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff861b4bf0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff861b5c70> 226s 226s @pytest.mark.parametrize("action", ["sdist", "bdist_wheel"]) 226s @pytest.mark.parametrize("hide_listing", [True, False]) 226s def test_hide_listing(action, hide_listing, capfd, caplog): 226s cmd = [action] 226s if hide_listing: 226s cmd.insert(0, "--hide-listing") 226s 226s @project_setup_py_test("test-hide-listing", cmd, verbose_git=False, disable_languages_test=True) 226s def run(): 226s pass 226s 226s > run() 226s 226s action = 'bdist_wheel' 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff861b4bf0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff861b5c70> 226s cmd = ['bdist_wheel'] 226s hide_listing = False 226s run = .run at 0x3ff85e20400> 226s 226s tests/test_command_line.py:154: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = True 226s fun = .run at 0x3ff85fcde40> 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = .run at 0x3ff85e20400> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-31/run0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85d398a0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85d616c0> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-31/run0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85d398a0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85d616c0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85ede600> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85d63560> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85ede600> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-31/run0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-31/run0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-31/run0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-31/run0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-31/run0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-31/run0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-31/run0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-31/run0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-31/run0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-31/run0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-31/run0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-31/run0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ___________________________ test_hello_cython_builds ___________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = False 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecc130, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecc130, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'cython_flags' 226s package_data = {'cython_flags': ['_hello.cpython-312-s390x-linux-gnu.so', 'hello/__init__.py', 'hello/__main__.py']} 226s package_dir = {'cython_flags': 'hello'} 226s package_prefixes = [('hello', 'cython_flags')] 226s packages = ['cython_flags'] 226s plat_name = None 226s prefix = 'hello' 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s dist = .BinaryDistribution object at 0x3ff85dd5130> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dd5130> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd5130> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd5130> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd5130> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd5130> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd5130> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s modules = [('cython_flags', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py'), ('cython_flags', '__main__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py')] 226s package = 'cython_flags' 226s package_ = 'cython_flags' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'cython_flags' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'cython_flags' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/cython_flags' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/cython_flags/__init__.py' 226s package = ['cython_flags'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/cython_flags' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/cython_flags' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/cython_flags' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'cython_flags'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/.git/ 226s [master (root-commit) 3ef2cf2] Initial commit 226s 6 files changed, 40 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.pyx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.4s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Found Cython: /usr/bin/cython 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.1s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 33%] Generating CXX source hello/_hello.cxx 226s [ 66%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pytest-of-ubuntu/pytest-34/test_hello_cython_builds0/hello/_hello.pyx 226s tree = Parsing.p_module(s, pxd, full_module_name) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ___________________________ test_bdist_wheel_command ___________________________ 226s 226s def test_bdist_wheel_command(): 226s project = "test-filter-manifest" 226s 226s expected_content = [ 226s "hello/__init__.py", 226s "hello/swig_mwe.py", 226s "hello/_swig_mwe.pyd", 226s "hello-1.2.3.data/data/bin/hello", 226s ] 226s 226s expected_distribution_name = "hello-1.2.3" 226s 226s tmp_dir = _tmpdir("test_bdist_wheel_command") 226s prepare_project(project, tmp_dir) 226s initialize_git_repo_and_commit(tmp_dir, verbose=True) 226s 226s relative_setup_path = "wrapping/python/" 226s 226s > with execute_setup_py(tmp_dir.join(relative_setup_path), ["bdist_wheel"]): 226s 226s expected_content = ['hello/__init__.py', 'hello/swig_mwe.py', 'hello/_swig_mwe.pyd', 'hello-1.2.3.data/data/bin/hello'] 226s expected_distribution_name = 'hello-1.2.3' 226s project = 'test-filter-manifest' 226s relative_setup_path = 'wrapping/python/' 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0') 226s 226s tests/test_filter_manifest.py:27: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s exclude_dev_files = 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85d39680, file "setup.py", line 1> 226s setup.py:10: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s exclude_dev_files = 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85d39680, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/bin/hello', '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_swig_mwe.pyd'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = 226s cmake_source_dir = '../../' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {'bin': {'_skbuild/linux-s390x-3.12/cmake-install/bin/hello'}} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , 'bdist_wheel': .BinaryDistribution object at 0x3ff85dd59d0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff87322160> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd59d0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s modules = [('hello', 'swig_mwe', '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py'), ('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/swig_mwe.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/.git/ 226s [master (root-commit) bc187e4] Initial commit 226s 4 files changed, 60 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 wrapping/python/CMakeLists.txt 226s create mode 100644 wrapping/python/hello/__init__.py 226s create mode 100644 wrapping/python/setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.6s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/include/bar.h 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/include/foo.h 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/lib/static/libbar.a 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/lib/static/libfoo.a 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/bin/hello 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-35/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/hello/_swig_mwe.pyd 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ______________________________ test_hello_builds _______________________________ 226s 226s def test_hello_builds(): 226s with push_dir(): 226s 226s @project_setup_py_test("hello-cpp", ["build"], ret=True) 226s def run(): 226s pass 226s 226s # Check that a project can be build twice in a row 226s # See issue scikit-build#120 226s > tmp_dir = run()[0] 226s 226s run = .run at 0x3ff85e23f60> 226s 226s tests/test_hello_cpp.py:30: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = False 226s fun = .run at 0x3ff85e22b60> 226s iargs = () 226s ikwargs = {} 226s ret = True 226s wrapped = .run at 0x3ff85e23f60> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-36/run0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85db4ad0, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-36/run0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85db4ad0, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85dda000> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dda000> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85dda000> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dda000> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dda000> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dda000> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dda000> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-36/run0/.git/ 226s [master (root-commit) c1c7ab6] Initial commit 226s 11 files changed, 115 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 bonjour/__init__.py 226s create mode 100644 bonjour/data/ciel.txt 226s create mode 100644 bonjour/data/soleil.txt 226s create mode 100644 bonjour/data/terre.txt 226s create mode 100644 bonjourModule.py 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-36/run0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-36/run0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (0.9s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-36/run0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-36/run0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-36/run0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-36/run0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-36/run0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s _______________________________ test_hello_wheel _______________________________ 226s 226s def test_hello_wheel(): 226s expected_content = [ 226s f"hello/_hello{get_ext_suffix()}", 226s "hello/__init__.py", 226s "hello/__main__.py", 226s "hello/world.py", 226s "helloModule.py", 226s "bonjour/__init__.py", 226s "bonjour/data/ciel.txt", 226s "bonjour/data/soleil.txt", 226s "bonjour/data/terre.txt", 226s "bonjourModule.py", 226s ] 226s 226s expected_distribution_name = "hello-1.2.3" 226s 226s @project_setup_py_test("hello-cpp", ["bdist_wheel"], ret=True) 226s def build_wheel(): 226s whls = glob.glob("dist/*.whl") 226s assert len(whls) == 1 226s check_wheel_content(whls[0], expected_distribution_name, expected_content) 226s os.remove(whls[0]) 226s assert not os.path.exists(whls[0]) 226s 226s assert os.path.exists(os.path.join(CMAKE_BUILD_DIR(), "CMakeCache.txt")) 226s os.remove(os.path.join(CMAKE_BUILD_DIR(), "CMakeCache.txt")) 226s 226s > tmp_dir = build_wheel()[0] 226s 226s build_wheel = .build_wheel at 0x3ff85ddd9e0> 226s expected_content = ['hello/_hello.cpython-312-s390x-linux-gnu.so', 'hello/__init__.py', 'hello/__main__.py', 'hello/world.py', 'helloModule.py', 'bonjour/__init__.py', ...] 226s expected_distribution_name = 'hello-1.2.3' 226s 226s tests/test_hello_cpp.py:98: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = False 226s fun = .build_wheel at 0x3ff85e23c40> 226s iargs = () 226s ikwargs = {} 226s ret = True 226s wrapped = .build_wheel at 0x3ff85ddd9e0> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-37/build_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85db6120, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-37/build_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85db6120, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85983ec0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff860a5bc0> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85983ec0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/.git/ 226s [master (root-commit) c556ee8] Initial commit 226s 11 files changed, 115 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 bonjour/__init__.py 226s create mode 100644 bonjour/data/ciel.txt 226s create mode 100644 bonjour/data/soleil.txt 226s create mode 100644 bonjour/data/terre.txt 226s create mode 100644 bonjourModule.py 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-37/build_wheel0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-37/build_wheel0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ________________________ test_hello_clean[with-dry-run] ________________________ 226s 226s dry_run = True, capfd = <_pytest.capture.CaptureFixture object at 0x3ff8592ca70> 226s 226s @pytest.mark.parametrize("dry_run", ["with-dry-run", "without-dry-run"]) 226s def test_hello_clean(dry_run, capfd): 226s with push_dir(): 226s dry_run = dry_run == "with-dry-run" 226s 226s @project_setup_py_test("hello-cpp", ["build"], ret=True) 226s def run_build(): 226s pass 226s 226s > tmp_dir = run_build()[0] 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff8592ca70> 226s dry_run = True 226s run_build = .run_build at 0x3ff85e23880> 226s 226s tests/test_hello_cpp.py:119: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = False 226s fun = .run_build at 0x3ff85e22660> 226s iargs = () 226s ikwargs = {} 226s ret = True 226s wrapped = .run_build at 0x3ff85e23880> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-38/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d39680, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-38/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d39680, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff8592e8a0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff8592e8a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff8592e8a0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff8592e8a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff8592e8a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff8592e8a0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff8592e8a0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-38/run_build0/.git/ 226s [master (root-commit) c6572cf] Initial commit 226s 11 files changed, 115 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 bonjour/__init__.py 226s create mode 100644 bonjour/data/ciel.txt 226s create mode 100644 bonjour/data/soleil.txt 226s create mode 100644 bonjour/data/terre.txt 226s create mode 100644 bonjourModule.py 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-38/run_build0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-38/run_build0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-38/run_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-38/run_build0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-38/run_build0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-38/run_build0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-38/run_build0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ______________________ test_hello_clean[without-dry-run] _______________________ 226s 226s dry_run = False 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff8592f620> 226s 226s @pytest.mark.parametrize("dry_run", ["with-dry-run", "without-dry-run"]) 226s def test_hello_clean(dry_run, capfd): 226s with push_dir(): 226s dry_run = dry_run == "with-dry-run" 226s 226s @project_setup_py_test("hello-cpp", ["build"], ret=True) 226s def run_build(): 226s pass 226s 226s > tmp_dir = run_build()[0] 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff8592f620> 226s dry_run = False 226s run_build = .run_build at 0x3ff85e21da0> 226s 226s tests/test_hello_cpp.py:119: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = False 226s fun = .run_build at 0x3ff85e20a40> 226s iargs = () 226s ikwargs = {} 226s ret = True 226s wrapped = .run_build at 0x3ff85e21da0> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-39/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d38250, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-39/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d38250, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85dd4cb0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dd4cb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd4cb0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd4cb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd4cb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd4cb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd4cb0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-39/run_build0/.git/ 226s [master (root-commit) b012e4f] Initial commit 226s 11 files changed, 115 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 bonjour/__init__.py 226s create mode 100644 bonjour/data/ciel.txt 226s create mode 100644 bonjour/data/soleil.txt 226s create mode 100644 bonjour/data/terre.txt 226s create mode 100644 bonjourModule.py 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-39/run_build0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-39/run_build0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (0.9s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-39/run_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-39/run_build0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-39/run_build0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-39/run_build0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-39/run_build0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ______________________________ test_hello_cleans _______________________________ 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85983ad0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff859802f0> 226s 226s def test_hello_cleans(capfd, caplog): 226s with push_dir(): 226s tmp_dir = _tmpdir("test_hello_cleans") 226s 226s _copy_dir(tmp_dir, os.path.join(SAMPLES_DIR, "hello-cpp")) 226s 226s @project_setup_py_test("hello-cpp", ["build"], tmp_dir=tmp_dir) 226s def run_build(): 226s pass 226s 226s @project_setup_py_test("hello-cpp", ["clean"], tmp_dir=tmp_dir) 226s def run_clean(): 226s pass 226s 226s # Check that a project can be cleaned twice in a row 226s > run_build() 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85983ad0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff859802f0> 226s run_build = .run_build at 0x3ff85e20f40> 226s run_clean = .run_clean at 0x3ff85e20400> 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0') 226s 226s tests/test_hello_cpp.py:163: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = False 226s fun = .run_build at 0x3ff85e22b60> 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = .run_build at 0x3ff85e20f40> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d38030, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d38030, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85dd49e0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dd49e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd49e0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd49e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd49e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd49e0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd49e0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-40/test_hello_cleans0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ___________________________ test_hello_cython_builds ___________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = False 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecf730, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecf730, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s make_args = ['--config', 'Release'] 226s msg = "package_dir={'hello_cython': 'hello/'} ends with a trailing slash, which is not supported by setuptools." 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'hello_cython' 226s package_data = {'hello_cython': ['_hello.cpython-312-s390x-linux-gnu.so', 'hello/__init__.py', 'hello/__main__.py']} 226s package_dir = {'hello_cython': 'hello'} 226s package_prefixes = [('hello', 'hello_cython')] 226s packages = ['hello_cython'] 226s plat_name = None 226s prefix = 'hello/' 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s dist = .BinaryDistribution object at 0x3ff85d67e60> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85d67e60> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85d67e60> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85d67e60> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85d67e60> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85d67e60> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85d67e60> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s modules = [('hello_cython', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py'), ('hello_cython', '__main__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py')] 226s package = 'hello_cython' 226s package_ = 'hello_cython' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello_cython' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello_cython' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython/__init__.py' 226s package = ['hello_cython'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello_cython'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/.git/ 226s [master (root-commit) d3f051b] Initial commit 226s 6 files changed, 42 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.pyx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.6s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Found Cython: /usr/bin/cython 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.1s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 33%] Generating CXX source hello/_hello.cxx 226s [ 66%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pytest-of-ubuntu/pytest-41/test_hello_cython_builds0/hello/_hello.pyx 226s tree = Parsing.p_module(s, pxd, full_module_name) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ___________________________ test_hello_cython_sdist ____________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = False 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-42/test_hello_cython_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85ece630, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-42/test_hello_cython_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85ece630, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['sdist'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package (cython version)', 'license': 'MIT', ...} 226s make_args = [] 226s msg = "package_dir={'hello_cython': 'hello/'} ends with a trailing slash, which is not supported by setuptools." 226s package = 'hello_cython' 226s plat_name = None 226s prefix = 'hello/' 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package (cython version)', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package (cython version)', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'hello/hello_cython.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'hello/hello_cython.egg-info', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-42/test_hello_cython_sdist0/hello/hello_cython.egg-info' 226s created_dirs = ['hello/hello_cython.egg-info'] 226s d = 'hello_cython.egg-info' 226s dry_run = False 226s head = 'hello/hello_cython.egg-info' 226s mode = 511 226s name = 'hello/hello_cython.egg-info' 226s tail = 'hello_cython.egg-info' 226s tails = ['hello_cython.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-42/test_hello_cython_sdist0/.git/ 226s [master (root-commit) 225e0bb] Initial commit 226s 6 files changed, 42 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.pyx 226s create mode 100644 setup.py 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating hello/hello_cython.egg-info 226s ___________________________ test_hello_cython_wheel ____________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = False 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85ece030, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85ece030, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s make_args = ['--config', 'Release'] 226s msg = "package_dir={'hello_cython': 'hello/'} ends with a trailing slash, which is not supported by setuptools." 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'hello_cython' 226s package_data = {'hello_cython': ['_hello.cpython-312-s390x-linux-gnu.so', 'hello/__init__.py', 'hello/__main__.py']} 226s package_dir = {'hello_cython': 'hello'} 226s package_prefixes = [('hello', 'hello_cython')] 226s packages = ['hello_cython'] 226s plat_name = None 226s prefix = 'hello/' 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cython version)', ...} 226s dist = .BinaryDistribution object at 0x3ff868a5f10> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85ddce00> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff868a5f10> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s modules = [('hello_cython', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py'), ('hello_cython', '__main__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py')] 226s package = 'hello_cython' 226s package_ = 'hello_cython' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello_cython' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello_cython' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython/__init__.py' 226s package = ['hello_cython'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello_cython' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello_cython'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/.git/ 226s [master (root-commit) 225e0bb] Initial commit 226s 6 files changed, 42 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.pyx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Found Cython: /usr/bin/cython 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.1s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 33%] Generating CXX source hello/_hello.cxx 226s [ 66%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pytest-of-ubuntu/pytest-43/test_hello_cython_wheel0/hello/_hello.pyx 226s tree = Parsing.p_module(s, pxd, full_module_name) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ____________________________ test_hello_pure_builds ____________________________ 226s 226s iargs = () 226s ikwargs = {'capsys': <_pytest.capture.CaptureFixture object at 0x3ff85e4fc80>} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {'capsys': <_pytest.capture.CaptureFixture object at 0x3ff85e4fc80>} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-44/test_hello_pure_builds0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecf330, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddec00> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-44/test_hello_pure_builds0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecf330, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddec00> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['build'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s modules = [('hello', '__init__', 'hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-44/test_hello_pure_builds0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-44/test_hello_pure_builds0/.git/ 226s [master (root-commit) e92ddeb] Initial commit 226s 2 files changed, 12 insertions(+) 226s create mode 100644 hello/__init__.py 226s create mode 100644 setup.py 226s skipping skbuild (no CMakeLists.txt found) 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s ____________________________ test_hello_pure_sdist _____________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-45/test_hello_pure_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85ecdf30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddf920> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-45/test_hello_pure_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85ecdf30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddf920> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['sdist'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'hello_pure.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'hello_pure.egg-info', mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-45/test_hello_pure_sdist0/hello_pure.egg-info' 226s created_dirs = ['hello_pure.egg-info'] 226s d = 'hello_pure.egg-info' 226s dry_run = False 226s head = 'hello_pure.egg-info' 226s mode = 511 226s name = 'hello_pure.egg-info' 226s tail = 'hello_pure.egg-info' 226s tails = ['hello_pure.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-45/test_hello_pure_sdist0/.git/ 226s [master (root-commit) cd72dc0] Initial commit 226s 2 files changed, 12 insertions(+) 226s create mode 100644 hello/__init__.py 226s create mode 100644 setup.py 226s skipping skbuild (no CMakeLists.txt found) 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating hello_pure.egg-info 226s ____________________________ test_hello_pure_wheel _____________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-46/test_hello_pure_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85ecd830, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddfce0> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-46/test_hello_pure_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85ecd830, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddfce0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['bdist_wheel'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85e20220> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s modules = [('hello', '__init__', 'hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-46/test_hello_pure_wheel0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-46/test_hello_pure_wheel0/.git/ 226s [master (root-commit) cd72dc0] Initial commit 226s 2 files changed, 12 insertions(+) 226s create mode 100644 hello/__init__.py 226s create mode 100644 setup.py 226s skipping skbuild (no CMakeLists.txt found) 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s _______________________________ test_hello_clean _______________________________ 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff859cb6b0> 226s 226s def test_hello_clean(capfd): 226s with push_dir(): 226s 226s @project_setup_py_test("hello-pure", ["build"], disable_languages_test=True, ret=True) 226s def run_build(): 226s pass 226s 226s > tmp_dir = run_build()[0] 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff859cb6b0> 226s run_build = .run_build at 0x3ff859ad080> 226s 226s tests/test_hello_pure.py:65: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = True 226s fun = .run_build at 0x3ff859acc20> 226s iargs = () 226s ikwargs = {} 226s ret = True 226s wrapped = .run_build at 0x3ff859ad080> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-47/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecd730, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddfb00> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-47/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85ecd730, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85ddfb00> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['build'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s modules = [('hello', '__init__', 'hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-47/run_build0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-47/run_build0/.git/ 226s [master (root-commit) cd72dc0] Initial commit 226s 2 files changed, 12 insertions(+) 226s create mode 100644 hello/__init__.py 226s create mode 100644 setup.py 226s skipping skbuild (no CMakeLists.txt found) 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s __________________________ test_include_exclude_data ___________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = False 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85d3b880, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85d3b880, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = () 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py', '_skbuild/linux-s390x-3.12/cmake-install/h...ed_and_exclude_from_setup.txt', '_skbuild/linux-s390x-3.12/cmake-install/hello2/hello2_data1_cmake_generated.txt', ...] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_file = 'hello2/data2/subdata2/hello2_data1_include_from_manifest.txt' 226s data_files = {} 226s dest_data_file = '_skbuild/linux-s390x-3.12/cmake-install/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt' 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'cmdclass': {'bdist': , 'bdist_wheel': , 'bdist_wheel': , 'bdist_wheel': .BinaryDistribution object at 0x3ff85e92f90> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85e2bc40> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85e92f90> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py' 226s modules = [('hello', 'cmake_generated_module', '_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py'), ('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/cmake_generated_module.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/.git/ 226s [master (root-commit) 9dad435] Initial commit 226s 15 files changed, 79 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 MANIFEST.in 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/data/subdata/hello_data1_include_from_manifest.txt 226s create mode 100644 hello/data/subdata/hello_data2_include_from_manifest.txt 226s create mode 100644 hello/data/subdata/hello_data3_include_from_manifest_and_exclude_from_manifest.txt 226s create mode 100644 hello/data/subdata/hello_data4_include_from_manifest_and_exclude_from_setup.txt 226s create mode 100644 hello/hello_include_from_manifest.txt 226s create mode 100644 hello2/__init__.py 226s create mode 100644 hello2/data2/subdata2/hello2_data1_include_from_manifest.txt 226s create mode 100644 hello2/data2/subdata2/hello2_data2_include_from_manifest.txt 226s create mode 100644 hello2/data2/subdata2/hello2_data3_include_from_manifest_and_exclude_from_manifest.txt 226s create mode 100644 hello2/data2/subdata2/hello2_data4_include_from_manifest_and_exclude_from_setup.txt 226s create mode 100644 hello2/hello2_include_from_manifest.txt 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello/cmake_generated_module.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello/hello_data1_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello/hello_data2_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello/data/subdata/hello_data3_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello/data/subdata/hello_data4_cmake_generated_and_exclude_from_setup.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello2/hello2_data1_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello2/hello2_data2_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello2/data2/subdata2/hello2_data3_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-48/test_include_exclude_data0/_skbuild/linux-s390x-3.12/cmake-install/hello2/data2/subdata2/hello2_data4_cmake_generated_and_exclude_from_setup.txt 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello2/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello2/__init__.py 226s copying hello/hello_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello/hello_include_from_manifest.txt 226s copying hello2/hello2_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello2/hello2_include_from_manifest.txt 226s copying hello/data/subdata/hello_data1_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello/data/subdata/hello_data1_include_from_manifest.txt 226s copying hello/data/subdata/hello_data4_include_from_manifest_and_exclude_from_setup.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello/data/subdata/hello_data4_include_from_manifest_and_exclude_from_setup.txt 226s copying hello/data/subdata/hello_data2_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello/data/subdata/hello_data2_include_from_manifest.txt 226s copying hello2/data2/subdata2/hello2_data2_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello2/data2/subdata2/hello2_data2_include_from_manifest.txt 226s copying hello2/data2/subdata2/hello2_data4_include_from_manifest_and_exclude_from_setup.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello2/data2/subdata2/hello2_data4_include_from_manifest_and_exclude_from_setup.txt 226s copying hello2/data2/subdata2/hello2_data1_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s WARNING root:filelist.py:129 warning: no previously-included files found matching 'MANIFEST.in' 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s _____________________ test_include_exclude_data_with_base ______________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = False 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85ea7bb0, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff85ea7bb0, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = () 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py', '_skbuild/linux-s390x-3.12/cmake-insta...nd_exclude_from_setup.txt', '_skbuild/linux-s390x-3.12/cmake-install/src/hello2/hello2_data1_cmake_generated.txt', ...] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_file = 'src/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt' 226s data_files = {} 226s dest_data_file = '_skbuild/linux-s390x-3.12/cmake-install/src/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt' 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'cmdclass': {'bdist': , 'bdist_wheel': , 'bdist_wheel': , 'bdist_wheel': .BinaryDistribution object at 0x3ff85dd4620> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85ddc7c0> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd4620> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py' 226s modules = [('hello', 'cmake_generated_module', '_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py'), ('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/src/hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/src/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = 'cmake_generated_module' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/cmake_generated_module.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/.git/ 226s [master (root-commit) 47dbc2d] Initial commit 226s 15 files changed, 80 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 MANIFEST.in 226s create mode 100644 setup.py 226s create mode 100644 src/hello/__init__.py 226s create mode 100644 src/hello/data/subdata/hello_data1_include_from_manifest.txt 226s create mode 100644 src/hello/data/subdata/hello_data2_include_from_manifest.txt 226s create mode 100644 src/hello/data/subdata/hello_data3_include_from_manifest_and_exclude_from_manifest.txt 226s create mode 100644 src/hello/data/subdata/hello_data4_include_from_manifest_and_exclude_from_setup.txt 226s create mode 100644 src/hello/hello_include_from_manifest.txt 226s create mode 100644 src/hello2/__init__.py 226s create mode 100644 src/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt 226s create mode 100644 src/hello2/data2/subdata2/hello2_data2_include_from_manifest.txt 226s create mode 100644 src/hello2/data2/subdata2/hello2_data3_include_from_manifest_and_exclude_from_manifest.txt 226s create mode 100644 src/hello2/data2/subdata2/hello2_data4_include_from_manifest_and_exclude_from_setup.txt 226s create mode 100644 src/hello2/hello2_include_from_manifest.txt 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello/cmake_generated_module.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello/hello_data1_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello/hello_data2_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello/data/subdata/hello_data3_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello/data/subdata/hello_data4_cmake_generated_and_exclude_from_setup.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello2/hello2_data1_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello2/hello2_data2_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello2/data2/subdata2/hello2_data3_cmake_generated.txt 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-49/test_include_exclude_data_with0/_skbuild/linux-s390x-3.12/cmake-install/src/hello2/data2/subdata2/hello2_data4_cmake_generated_and_exclude_from_setup.txt 226s 226s copying src/hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/src/hello/__init__.py 226s copying src/hello2/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/src/hello2/__init__.py 226s copying src/hello/hello_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello/hello_include_from_manifest.txt 226s copying src/hello2/hello2_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello2/hello2_include_from_manifest.txt 226s copying src/hello/data/subdata/hello_data1_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello/data/subdata/hello_data1_include_from_manifest.txt 226s copying src/hello/data/subdata/hello_data4_include_from_manifest_and_exclude_from_setup.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello/data/subdata/hello_data4_include_from_manifest_and_exclude_from_setup.txt 226s copying src/hello/data/subdata/hello_data2_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello/data/subdata/hello_data2_include_from_manifest.txt 226s copying src/hello2/data2/subdata2/hello2_data2_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello2/data2/subdata2/hello2_data2_include_from_manifest.txt 226s copying src/hello2/data2/subdata2/hello2_data4_include_from_manifest_and_exclude_from_setup.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello2/data2/subdata2/hello2_data4_include_from_manifest_and_exclude_from_setup.txt 226s copying src/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt -> _skbuild/linux-s390x-3.12/cmake-install/src/hello2/data2/subdata2/hello2_data1_include_from_manifest.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s WARNING root:filelist.py:129 warning: no previously-included files found matching 'MANIFEST.in' 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ________________________ test_build_ext_inplace_command ________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s Extension = 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0') 226s setup = 226s setup_args = ['build_ext', '--inplace'] 226s setup_code = at 0x3ff8608b510, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e22ac0> 226s setup.py:7: in 226s ??? 226s Extension = 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0') 226s setup = 226s setup_args = ['build_ext', '--inplace'] 226s setup_code = at 0x3ff8608b510, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e22ac0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = 1 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello_sk.cpython-312-s390x-linux-gnu.so' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello_sk.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build_ext'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = 1 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s package = 'hello' 226s package_data = {'hello': ['_hello_sk.cpython-312-s390x-linux-gnu.so']} 226s package_dir = {'hello': 'hello'} 226s package_file = '_hello_sk.cpython-312-s390x-linux-gnu.so' 226s package_file_list = ['_hello_sk.cpython-312-s390x-linux-gnu.so'] 226s package_path = 'hello/_hello_sk.cpython-312-s390x-linux-gnu.so' 226s package_prefixes = [('hello', 'hello')] 226s packages = ['hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff85d96600> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85d96600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build_ext' 226s self = .BinaryDistribution object at 0x3ff85d96600> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_ext' 226s self = .BinaryDistribution object at 0x3ff85d96600> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_ext' 226s self = .BinaryDistribution object at 0x3ff85d96600> 226s /usr/lib/python3/dist-packages/setuptools/command/build_ext.py:93: in run 226s _build_ext.run(self) 226s old_inplace = 1 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py:359: in run 226s self.build_extensions() 226s new_compiler = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py:479: in build_extensions 226s self._build_extensions_serial() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py:505: in _build_extensions_serial 226s self.build_extension(ext) 226s ext = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_ext.py:254: in build_extension 226s _build_ext.build_extension(self, ext) 226s _compiler = 226s ext = 226s self = 226s /usr/lib/python3/dist-packages/Cython/Distutils/build_ext.py:135: in build_extension 226s super(build_ext, self).build_extension(ext) 226s __class__ = 226s cythonize = 226s directives = {} 226s ext = 226s include_dir = '/usr/include/python3.12' 226s includes = ['/usr/include/python3.12'] 226s new_ext = 226s options = {'build_dir': None, 'c_line_in_traceback': True, 'compile_time_env': None, 'compiler_directives': {}, ...} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py:560: in build_extension 226s objects = self.compiler.compile( 226s depends = ['hello/_hello_ext.cxx'] 226s ext = 226s ext_path = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/_hello_ext.cpython-312-s390x-linux-gnu.so' 226s extra_args = [] 226s macros = [] 226s self = 226s sources = ['hello/_hello_ext.cxx'] 226s /usr/lib/python3/dist-packages/setuptools/_distutils/ccompiler.py:595: in compile 226s macros, objects, extra_postargs, pp_opts, build = self._setup_compile( 226s debug = None 226s depends = [] 226s extra_postargs = [] 226s extra_preargs = None 226s include_dirs = [] 226s macros = [] 226s output_dir = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312' 226s self = 226s sources = ['hello/_hello_ext.cxx'] 226s /usr/lib/python3/dist-packages/setuptools/_distutils/ccompiler.py:360: in _setup_compile 226s self.mkpath(os.path.dirname(obj)) 226s build = {} 226s depends = [] 226s ext = '.cxx' 226s extra = [] 226s i = 0 226s incdirs = ['/usr/include/python3.12'] 226s macros = [] 226s obj = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312/hello/_hello_ext.o' 226s objects = ['_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312/hello/_hello_ext.o'] 226s outdir = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312' 226s pp_opts = ['-I/usr/include/python3.12'] 226s self = 226s sources = ['hello/_hello_ext.cxx'] 226s src = 'hello/_hello_ext.cxx' 226s /usr/lib/python3/dist-packages/setuptools/_distutils/ccompiler.py:1050: in mkpath 226s mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312'] 226s d = 'temp.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312/hello' 226s tail = 'temp.linux-s390x-cpython-312' 226s tails = ['temp.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/.git/ 226s [master (root-commit) b7363c4] Initial commit 226s 5 files changed, 160 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/_hello_ext.cxx 226s create mode 100644 hello/_hello_sk.cxx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.1s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object CMakeFiles/_hello_sk.dir/hello/_hello_sk.cxx.o 226s [100%] Linking CXX shared module _hello_sk.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello_sk 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-50/test_build_ext_inplace_command0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello_sk.cpython-312-s390x-linux-gnu.so 226s copying _skbuild/linux-s390x-3.12/cmake-install/hello/_hello_sk.cpython-312-s390x-linux-gnu.so -> hello/_hello_sk.cpython-312-s390x-linux-gnu.so 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build_ext 226s INFO root:build_ext.py:533 building 'hello._hello_ext' extension 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/temp.linux-s390x-cpython-312 226s ___________________________ test_bdist_wheel_command ___________________________ 226s 226s def test_bdist_wheel_command(): 226s project = "issue-335-support-cmake-source-dir" 226s 226s expected_content = [ 226s "hello/__init__.py", 226s "hello/swig_mwe.py", 226s "hello/_swig_mwe.pyd", 226s "hello-1.2.3.data/data/bin/hello", 226s "hello-1.2.3.data/data/lib/static/libbar.a", 226s "hello-1.2.3.data/data/lib/static/libfoo.a", 226s "hello-1.2.3.data/data/include/bar.h", 226s "hello-1.2.3.data/data/include/foo.h", 226s ] 226s 226s expected_distribution_name = "hello-1.2.3" 226s 226s tmp_dir = _tmpdir("test_bdist_wheel_command") 226s prepare_project(project, tmp_dir) 226s initialize_git_repo_and_commit(tmp_dir, verbose=True) 226s 226s relative_setup_path = "wrapping/python/" 226s 226s > with execute_setup_py(tmp_dir.join(relative_setup_path), ["bdist_wheel"]): 226s 226s expected_content = ['hello/__init__.py', 'hello/swig_mwe.py', 'hello/_swig_mwe.pyd', 'hello-1.2.3.data/data/bin/hello', 'hello-1.2.3.data/data/lib/static/libbar.a', 'hello-1.2.3.data/data/lib/static/libfoo.a', ...] 226s expected_distribution_name = 'hello-1.2.3' 226s project = 'issue-335-support-cmake-source-dir' 226s relative_setup_path = 'wrapping/python/' 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0') 226s 226s tests/test_issue335_support_cmake_source_dir.py:31: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff858dd430, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff858dd430, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/include/bar.h', '_skbuild/linux-s390x-3.12/cmake-install/include/foo.h', '_s... '_skbuild/linux-s390x-3.12/cmake-install/bin/hello', '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py', ...] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '../../' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': None, 'PYTHONPATH': None}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {'bin': {'_skbuild/linux-s390x-3.12/cmake-install/bin/hello'}, 'include': {'_skbuild/linux-s390x-3.12/cmake-install/in...ld/linux-s390x-3.12/cmake-install/lib/static/libbar.a', '_skbuild/linux-s390x-3.12/cmake-install/lib/static/libfoo.a'}} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , 'bdist_wheel': , 'bdist_wheel': .BinaryDistribution object at 0x3ff85dd5910> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85a77f60> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85dd5910> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s modules = [('hello', 'swig_mwe', '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py'), ('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = 'swig_mwe' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/swig_mwe.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/.git/ 226s [master (root-commit) 60d14ed] Initial commit 226s 4 files changed, 53 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 wrapping/python/CMakeLists.txt 226s create mode 100644 wrapping/python/hello/__init__.py 226s create mode 100644 wrapping/python/setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/include/bar.h 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/include/foo.h 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/lib/static/libbar.a 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/lib/static/libfoo.a 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/bin/hello 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/hello/swig_mwe.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-51/test_bdist_wheel_command0/wrapping/python/_skbuild/linux-s390x-3.12/cmake-install/hello/_swig_mwe.pyd 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s __________________________ test_symbol_visibility[ON] __________________________ 226s 226s skip_override = 'ON' 226s 226s @pytest.mark.skipif( 226s platform.system().lower() not in ["linux"], reason="Executable and Linkable Format (ELF) is specific to Linux" 226s ) 226s @pytest.mark.parametrize("skip_override", ["ON", "OFF"]) 226s def test_symbol_visibility(skip_override): 226s with push_dir(): 226s tmp_dir = _tmpdir("test_issue668_symbol_visibility") 226s project = "issue-668-symbol-visibility" 226s prepare_project(project, tmp_dir) 226s initialize_git_repo_and_commit(tmp_dir, verbose=True) 226s 226s > with execute_setup_py( 226s tmp_dir, ["build", f"-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL={skip_override}"] 226s ): 226s 226s project = 'issue-668-symbol-visibility' 226s skip_override = 'ON' 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0') 226s 226s tests/test_issue668_symbol_visibility.py:32: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0') 226s setup = 226s setup_args = ['build', '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON'] 226s setup_code = at 0x3ff858de430, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0') 226s setup = 226s setup_args = ['build', '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON'] 226s setup_code = at 0x3ff858de430, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON', '-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = ['-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON'] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s item = '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON' 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cpp version)', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'hello' 226s package_data = {'hello': ['_hello.cpython-312-s390x-linux-gnu.so', '__init__.py']} 226s package_dir = {'hello': 'hello'} 226s package_prefixes = [('hello', 'hello')] 226s packages = ['hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cpp version)', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cpp version)', ...} 226s dist = .BinaryDistribution object at 0x3ff85aeaff0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85aeaff0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85aeaff0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85aeaff0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85aeaff0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85aeaff0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85aeaff0> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s modules = [('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/.git/ 226s [master (root-commit) 794dfa3] Initial commit 226s 5 files changed, 121 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 pyproject.toml 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object CMakeFiles/_hello.dir/hello/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-62/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s _________________________ test_symbol_visibility[OFF] __________________________ 226s 226s skip_override = 'OFF' 226s 226s @pytest.mark.skipif( 226s platform.system().lower() not in ["linux"], reason="Executable and Linkable Format (ELF) is specific to Linux" 226s ) 226s @pytest.mark.parametrize("skip_override", ["ON", "OFF"]) 226s def test_symbol_visibility(skip_override): 226s with push_dir(): 226s tmp_dir = _tmpdir("test_issue668_symbol_visibility") 226s project = "issue-668-symbol-visibility" 226s prepare_project(project, tmp_dir) 226s initialize_git_repo_and_commit(tmp_dir, verbose=True) 226s 226s > with execute_setup_py( 226s tmp_dir, ["build", f"-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL={skip_override}"] 226s ): 226s 226s project = 'issue-668-symbol-visibility' 226s skip_override = 'OFF' 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0') 226s 226s tests/test_issue668_symbol_visibility.py:32: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0') 226s setup = 226s setup_args = ['build', '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF'] 226s setup_code = at 0x3ff858de230, file "setup.py", line 1> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0') 226s setup = 226s setup_args = ['build', '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF'] 226s setup_code = at 0x3ff858de230, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF', '-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = ['-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF'] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s item = '-DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF' 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cpp version)', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'hello' 226s package_data = {'hello': ['_hello.cpython-312-s390x-linux-gnu.so', '__init__.py']} 226s package_dir = {'hello': 'hello'} 226s package_prefixes = [('hello', 'hello')] 226s packages = ['hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cpp version)', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package (cpp version)', ...} 226s dist = .BinaryDistribution object at 0x3ff85aebc80> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85aebc80> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85aebc80> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85aebc80> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85aebc80> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85aebc80> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85aebc80> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s modules = [('hello', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/hello' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/.git/ 226s [master (root-commit) cbd1a22] Initial commit 226s 5 files changed, 121 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 pyproject.toml 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.5s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DSKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object CMakeFiles/_hello.dir/hello/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-63/test_issue668_symbol_visibilit0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ____________________________ test_manifest_in_wheel ____________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-64/test_manifest_in_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff858dde30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85a2ec00> 226s setup.py:5: in 226s ??? 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-64/test_manifest_in_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff858dde30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85a2ec00> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['bdist_wheel'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package with a MANIFEST.in', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package with a MANIFEST.in', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package with a MANIFEST.in', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85a2f6a0> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:368: in run 226s self.run_command("build") 226s build_ext = 226s build_scripts = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s modules = [('hello', '__init__', 'hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-64/test_manifest_in_wheel0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-64/test_manifest_in_wheel0/.git/ 226s [master (root-commit) f1f6171] Initial commit 226s 4 files changed, 14 insertions(+) 226s create mode 100644 MANIFEST.in 226s create mode 100644 hello/__init__.py 226s create mode 100644 not_included.txt 226s create mode 100644 setup.py 226s skipping skbuild (no CMakeLists.txt found) 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s ____________________ test_distribution_is_pure[py_modules] _____________________ 226s 226s distribution_type = 'py_modules' 226s tmpdir = local('/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_py_m0') 226s 226s @pytest.mark.parametrize("distribution_type", ["unknown", "py_modules", "packages", "skbuild"]) 226s def test_distribution_is_pure(distribution_type, tmpdir): 226s skbuild_setup_kwargs = {} 226s 226s if distribution_type == "unknown": 226s is_pure = False 226s 226s elif distribution_type == "py_modules": 226s is_pure = True 226s hello_py = tmpdir.join("hello.py") 226s hello_py.write("") 226s skbuild_setup_kwargs["py_modules"] = ["hello"] 226s 226s elif distribution_type == "packages": 226s is_pure = True 226s init_py = tmpdir.mkdir("hello").join("__init__.py") 226s init_py.write("") 226s skbuild_setup_kwargs["packages"] = ["hello"] 226s 226s elif distribution_type == "skbuild": 226s is_pure = False 226s cmakelists_txt = tmpdir.join("CMakeLists.txt") 226s cmakelists_txt.write( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(test NONE) 226s install(CODE "execute_process( 226s COMMAND \\${CMAKE_COMMAND} -E sleep 0)") 226s """ 226s ) 226s else: 226s msg = f"Unknown distribution_type: {distribution_type}" 226s raise Exception(msg) 226s 226s platform = get_platform() 226s original_write_test_cmakelist = platform.write_test_cmakelist 226s 226s def write_test_cmakelist_no_languages(_self, _languages): 226s original_write_test_cmakelist([]) 226s 226s with patch.object(type(platform), "write_test_cmakelist", new=write_test_cmakelist_no_languages): 226s with push_dir(str(tmpdir)), push_argv(["setup.py", "build"]): 226s > distribution = skbuild_setup( 226s name="test", 226s version="0.0.1", 226s description="test object returned by setup function", 226s author="The scikit-build team", 226s license="MIT", 226s **skbuild_setup_kwargs, # type: ignore[arg-type] 226s ) 226s 226s distribution_type = 'py_modules' 226s hello_py = local('/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_py_m0/hello.py') 226s is_pure = True 226s original_write_test_cmakelist = 226s platform = 226s skbuild_setup_kwargs = {'py_modules': ['hello']} 226s tmpdir = local('/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_py_m0') 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff857447c0> 226s 226s tests/test_setup.py:78: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['build'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'test object returned by setup function', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'test object returned by setup function', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'test object returned by setup function', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'hello' 226s module_file = 'hello.py' 226s modules = [('', 'hello', 'hello.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'hello' 226s module_file = 'hello.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'hello' 226s module_file = 'hello.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib' 226s module = 'hello' 226s module_file = 'hello.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/hello.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_py_m0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s skipping skbuild (no CMakeLists.txt found) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s _____________________ test_distribution_is_pure[packages] ______________________ 226s 226s distribution_type = 'packages' 226s tmpdir = local('/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_pack0') 226s 226s @pytest.mark.parametrize("distribution_type", ["unknown", "py_modules", "packages", "skbuild"]) 226s def test_distribution_is_pure(distribution_type, tmpdir): 226s skbuild_setup_kwargs = {} 226s 226s if distribution_type == "unknown": 226s is_pure = False 226s 226s elif distribution_type == "py_modules": 226s is_pure = True 226s hello_py = tmpdir.join("hello.py") 226s hello_py.write("") 226s skbuild_setup_kwargs["py_modules"] = ["hello"] 226s 226s elif distribution_type == "packages": 226s is_pure = True 226s init_py = tmpdir.mkdir("hello").join("__init__.py") 226s init_py.write("") 226s skbuild_setup_kwargs["packages"] = ["hello"] 226s 226s elif distribution_type == "skbuild": 226s is_pure = False 226s cmakelists_txt = tmpdir.join("CMakeLists.txt") 226s cmakelists_txt.write( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(test NONE) 226s install(CODE "execute_process( 226s COMMAND \\${CMAKE_COMMAND} -E sleep 0)") 226s """ 226s ) 226s else: 226s msg = f"Unknown distribution_type: {distribution_type}" 226s raise Exception(msg) 226s 226s platform = get_platform() 226s original_write_test_cmakelist = platform.write_test_cmakelist 226s 226s def write_test_cmakelist_no_languages(_self, _languages): 226s original_write_test_cmakelist([]) 226s 226s with patch.object(type(platform), "write_test_cmakelist", new=write_test_cmakelist_no_languages): 226s with push_dir(str(tmpdir)), push_argv(["setup.py", "build"]): 226s > distribution = skbuild_setup( 226s name="test", 226s version="0.0.1", 226s description="test object returned by setup function", 226s author="The scikit-build team", 226s license="MIT", 226s **skbuild_setup_kwargs, # type: ignore[arg-type] 226s ) 226s 226s distribution_type = 'packages' 226s init_py = local('/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_pack0/hello/__init__.py') 226s is_pure = True 226s original_write_test_cmakelist = 226s platform = 226s skbuild_setup_kwargs = {'packages': ['hello']} 226s tmpdir = local('/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_pack0') 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff857468e0> 226s 226s tests/test_setup.py:78: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['build'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'test object returned by setup function', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'test object returned by setup function', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'test object returned by setup function', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s modules = [('hello', '__init__', 'hello/__init__.py')] 226s package = 'hello' 226s package_ = 'hello' 226s package_dir = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s package = 'hello' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s module = '__init__' 226s module_file = 'hello/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/hello/__init__.py' 226s package = ['hello'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-21/test_distribution_is_pure_pack0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib/hello' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib', 'hello'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s skipping skbuild (no CMakeLists.txt found) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s _______________ test_cmake_install_dir_keyword[banana-False-str] _______________ 226s 226s cmake_install_dir = 'banana', expected_failed = False 226s error_code_type = 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff85734f80> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85736150> 226s 226s @pytest.mark.parametrize( 226s ("cmake_install_dir", "expected_failed", "error_code_type"), 226s [ 226s (None, True, str), 226s ("", True, str), 226s (str(py.path.local.get_temproot().join("scikit-build")), True, SKBuildError), 226s ("banana", False, str), 226s ], 226s ) 226s def test_cmake_install_dir_keyword(cmake_install_dir, expected_failed, error_code_type, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # "SOURCE" tree layout: 226s # 226s # ROOT/ 226s # 226s # CMakeLists.txt 226s # setup.py 226s # 226s # apple/ 226s # __init__.py 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout 226s # 226s # ROOT/ 226s # 226s # apple/ 226s # __init__.py 226s # 226s 226s tmp_dir = _tmpdir("cmake_install_dir_keyword") 226s 226s setup_kwarg = "" 226s if cmake_install_dir is not None: 226s setup_kwarg = f"cmake_install_dir={str(cmake_install_dir)!r}" 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s f""" 226s from skbuild import setup 226s setup( 226s name="test_cmake_install_dir", 226s version="1.2.3", 226s description="a package testing use of cmake_install_dir", 226s author='The scikit-build team', 226s license="MIT", 226s packages=['apple', 'banana'], 226s {setup_kwarg} 226s ) 226s """ 226s ) 226s ) 226s 226s # Install location purposely set to "." so that we can test 226s # usage of "cmake_install_dir" skbuild.setup keyword. 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(banana NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/__init__.py" "") 226s install(FILES "${CMAKE_BINARY_DIR}/__init__.py" DESTINATION ".") 226s """ 226s ) 226s ) 226s 226s tmp_dir.ensure("apple", "__init__.py") 226s 226s failed = False 226s message = "" 226s try: 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85736150> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff85734f80> 226s cmake_install_dir = 'banana' 226s error_code_type = 226s expected_failed = False 226s failed = False 226s message = '' 226s setup_kwarg = "cmake_install_dir='banana'" 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0') 226s 226s tests/test_setup.py:210: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f4430, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e6ef20> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f4430, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e6ef20> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = 'banana' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/banana/__init__.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of cmake_install_dir', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'banana' 226s package_data = {'apple': ['__init__.py'], 'banana': ['__init__.py']} 226s package_dir = {'apple': 'apple', 'banana': 'banana'} 226s package_prefixes = [('banana', 'banana'), ('apple', 'apple')] 226s packages = ['apple', 'banana'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of cmake_install_dir', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of cmake_install_dir', ...} 226s dist = .BinaryDistribution object at 0x3ff853cba10> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff853cba10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff853cba10> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff853cba10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff853cba10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff853cba10> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff853cba10> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/apple/__init__.py' 226s modules = [('apple', '__init__', '_skbuild/linux-s390x-3.12/cmake-install/apple/__init__.py')] 226s package = 'apple' 226s package_ = 'apple' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/apple' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/apple/__init__.py' 226s package = 'apple' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/apple/__init__.py' 226s package = 'apple' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/apple' 226s module = '__init__' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/apple/__init__.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/apple/__init__.py' 226s package = ['apple'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/apple' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/apple' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/apple' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'apple'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0/_cmake_test_compile/build 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0/_skbuild/linux-s390x-3.12/cmake-install/banana/./__init__.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-73/cmake_install_dir_keyword0/_skbuild/linux-s390x-3.12/cmake-install/banana -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/apple 226s copying apple/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/apple/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s _____________________ test_cmake_with_sdist_keyword[True] ______________________ 226s 226s cmake_with_sdist = True 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85734710> 226s 226s @pytest.mark.parametrize("cmake_with_sdist", [True, False]) 226s def test_cmake_with_sdist_keyword(cmake_with_sdist, capfd): 226s tmp_dir = _tmpdir("cmake_with_sdist") 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s f""" 226s from skbuild import setup 226s setup( 226s name="cmake_with_sdist_keyword", 226s version="1.2.3", 226s description="a minimal example package", 226s author='The scikit-build team', 226s license="MIT", 226s cmake_with_sdist={cmake_with_sdist} 226s ) 226s """ 226s ) 226s ) 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(test NONE) 226s install(CODE "execute_process( 226s COMMAND \\${CMAKE_COMMAND} -E sleep 0)") 226s """ 226s ) 226s ) 226s 226s initialize_git_repo_and_commit(tmp_dir) 226s 226s > with execute_setup_py(tmp_dir, ["sdist"], disable_languages_test=True): 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff85734710> 226s cmake_with_sdist = True 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0') 226s 226s tests/test_setup.py:266: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85e823d0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff857476a0> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff85e823d0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff857476a0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = [] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = True 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['sdist'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package_data = {} 226s package_dir = {} 226s package_prefixes = [] 226s packages = [] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff853caed0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff853caed0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = .BinaryDistribution object at 0x3ff853caed0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = .BinaryDistribution object at 0x3ff853caed0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = .BinaryDistribution object at 0x3ff853caed0> 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = .BinaryDistribution object at 0x3ff853caed0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = .BinaryDistribution object at 0x3ff853caed0> 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'cmake_with_sdist_keyword.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'cmake_with_sdist_keyword.egg-info', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0/cmake_with_sdist_keyword.egg-info' 226s created_dirs = ['cmake_with_sdist_keyword.egg-info'] 226s d = 'cmake_with_sdist_keyword.egg-info' 226s dry_run = False 226s head = 'cmake_with_sdist_keyword.egg-info' 226s mode = 511 226s name = 'cmake_with_sdist_keyword.egg-info' 226s tail = 'cmake_with_sdist_keyword.egg-info' 226s tails = ['cmake_with_sdist_keyword.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0/.git/ 226s [master (root-commit) b70e113] Initial commit 226s 2 files changed, 15 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-74/cmake_with_sdist0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating cmake_with_sdist_keyword.egg-info 226s _____________________ test_cmake_with_sdist_keyword[False] _____________________ 226s 226s cmake_with_sdist = False 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff853c8290> 226s 226s @pytest.mark.parametrize("cmake_with_sdist", [True, False]) 226s def test_cmake_with_sdist_keyword(cmake_with_sdist, capfd): 226s tmp_dir = _tmpdir("cmake_with_sdist") 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s f""" 226s from skbuild import setup 226s setup( 226s name="cmake_with_sdist_keyword", 226s version="1.2.3", 226s description="a minimal example package", 226s author='The scikit-build team', 226s license="MIT", 226s cmake_with_sdist={cmake_with_sdist} 226s ) 226s """ 226s ) 226s ) 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(test NONE) 226s install(CODE "execute_process( 226s COMMAND \\${CMAKE_COMMAND} -E sleep 0)") 226s """ 226s ) 226s ) 226s 226s initialize_git_repo_and_commit(tmp_dir) 226s 226s > with execute_setup_py(tmp_dir, ["sdist"], disable_languages_test=True): 226s 226s capfd = <_pytest.capture.CaptureFixture object at 0x3ff853c8290> 226s cmake_with_sdist = False 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-75/cmake_with_sdist0') 226s 226s tests/test_setup.py:266: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-75/cmake_with_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff856e2790, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85746f20> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-75/cmake_with_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff856e2790, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85746f20> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['sdist'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a minimal example package', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'cmake_with_sdist_keyword.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'cmake_with_sdist_keyword.egg-info', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-75/cmake_with_sdist0/cmake_with_sdist_keyword.egg-info' 226s created_dirs = ['cmake_with_sdist_keyword.egg-info'] 226s d = 'cmake_with_sdist_keyword.egg-info' 226s dry_run = False 226s head = 'cmake_with_sdist_keyword.egg-info' 226s mode = 511 226s name = 'cmake_with_sdist_keyword.egg-info' 226s tail = 'cmake_with_sdist_keyword.egg-info' 226s tails = ['cmake_with_sdist_keyword.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-75/cmake_with_sdist0/.git/ 226s [master (root-commit) df69a8b] Initial commit 226s 2 files changed, 15 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 setup.py 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating cmake_with_sdist_keyword.egg-info 226s __________________________ test_script_keyword[pure] ___________________________ 226s 226s distribution_type = 'pure' 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff85328f80> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85328bc0> 226s 226s @pytest.mark.parametrize("distribution_type", ["pure", "skbuild"]) 226s def test_script_keyword(distribution_type, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # 226s # "SOURCE" tree layout for "pure" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # foo.py 226s # bar.py 226s # 226s # "SOURCE" tree layout for "pure" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # CMakeLists.txt 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout is identical for both 226s # 226s # ROOT/ 226s # foo.py 226s # bar.py 226s # 226s 226s tmp_dir = _tmpdir("script_keyword") 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s """ 226s from skbuild import setup 226s setup( 226s name="test_script_keyword", 226s version="1.2.3", 226s description="a package testing use of script keyword", 226s author='The scikit-build team', 226s license="MIT", 226s scripts=['foo.py', 'bar.py'], 226s packages=[], 226s ) 226s """ 226s ) 226s ) 226s 226s if distribution_type == "skbuild": 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(foo NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/foo.py" "# foo.py") 226s file(WRITE "${CMAKE_BINARY_DIR}/bar.py" "# bar.py") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/foo.py" 226s "${CMAKE_BINARY_DIR}/bar.py" 226s DESTINATION "." 226s ) 226s """ 226s ) 226s ) 226s 226s messages = [ 226s f"copying {CMAKE_INSTALL_DIR()}/{module}.py -> {SKBUILD_DIR()}/setuptools/scripts-" 226s for module in ["foo", "bar"] 226s ] 226s 226s elif distribution_type == "pure": 226s tmp_dir.join("foo.py").write("# foo.py") 226s tmp_dir.join("bar.py").write("# bar.py") 226s 226s messages = [f"copying {module}.py -> {SKBUILD_DIR()}/setuptools/scripts-" for module in ["foo", "bar"]] 226s 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff85328bc0> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff85328f80> 226s distribution_type = 'pure' 226s messages = ['copying foo.py -> _skbuild/linux-s390x-3.12/setuptools/scripts-', 'copying bar.py -> _skbuild/linux-s390x-3.12/setuptools/scripts-'] 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-78/script_keyword0') 226s 226s tests/test_setup.py:449: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-78/script_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f5630, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85487e20> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-78/script_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f5630, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85487e20> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['build'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a package testing use of script keyword', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a package testing use of script keyword', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a package testing use of script keyword', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_scripts' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_scripts' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_scripts' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_scripts' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_scripts.py:57: in run 226s self.copy_scripts() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_scripts.py:68: in copy_scripts 226s self.mkpath(self.build_dir) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-78/script_keyword0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'scripts-3.12'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s skipping skbuild (no CMakeLists.txt found) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_scripts 226s INFO root:dir_util.py:70 creating _skbuild 226s _________________________ test_script_keyword[skbuild] _________________________ 226s 226s distribution_type = 'skbuild' 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff84faa480> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff84faa300> 226s 226s @pytest.mark.parametrize("distribution_type", ["pure", "skbuild"]) 226s def test_script_keyword(distribution_type, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # 226s # "SOURCE" tree layout for "pure" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # foo.py 226s # bar.py 226s # 226s # "SOURCE" tree layout for "pure" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # CMakeLists.txt 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout is identical for both 226s # 226s # ROOT/ 226s # foo.py 226s # bar.py 226s # 226s 226s tmp_dir = _tmpdir("script_keyword") 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s """ 226s from skbuild import setup 226s setup( 226s name="test_script_keyword", 226s version="1.2.3", 226s description="a package testing use of script keyword", 226s author='The scikit-build team', 226s license="MIT", 226s scripts=['foo.py', 'bar.py'], 226s packages=[], 226s ) 226s """ 226s ) 226s ) 226s 226s if distribution_type == "skbuild": 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(foo NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/foo.py" "# foo.py") 226s file(WRITE "${CMAKE_BINARY_DIR}/bar.py" "# bar.py") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/foo.py" 226s "${CMAKE_BINARY_DIR}/bar.py" 226s DESTINATION "." 226s ) 226s """ 226s ) 226s ) 226s 226s messages = [ 226s f"copying {CMAKE_INSTALL_DIR()}/{module}.py -> {SKBUILD_DIR()}/setuptools/scripts-" 226s for module in ["foo", "bar"] 226s ] 226s 226s elif distribution_type == "pure": 226s tmp_dir.join("foo.py").write("# foo.py") 226s tmp_dir.join("bar.py").write("# bar.py") 226s 226s messages = [f"copying {module}.py -> {SKBUILD_DIR()}/setuptools/scripts-" for module in ["foo", "bar"]] 226s 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff84faa300> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff84faa480> 226s distribution_type = 'skbuild' 226s messages = ['copying _skbuild/linux-s390x-3.12/cmake-install/foo.py -> _skbuild/linux-s390x-3.12/setuptools/scripts-', 'copying _skbuild/linux-s390x-3.12/cmake-install/bar.py -> _skbuild/linux-s390x-3.12/setuptools/scripts-'] 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-79/script_keyword0') 226s 226s tests/test_setup.py:449: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-79/script_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff858dfe30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e6ef20> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-79/script_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff858dfe30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85e6ef20> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/foo.py', '_skbuild/linux-s390x-3.12/cmake-install/bar.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of script keyword', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {'bar.py': True, 'foo.py': True} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package_data = {} 226s package_dir = {} 226s package_prefixes = [] 226s packages = [] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = ['foo.py', 'bar.py'] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of script keyword', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of script keyword', ...} 226s dist = .BinaryDistribution object at 0x3ff853f5eb0> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff853f5eb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff853f5eb0> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff853f5eb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff853f5eb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_scripts' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_scripts' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_scripts' 226s self = .BinaryDistribution object at 0x3ff853f5eb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_scripts' 226s self = .BinaryDistribution object at 0x3ff853f5eb0> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_scripts.py:57: in run 226s self.copy_scripts() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_scripts.py:68: in copy_scripts 226s self.mkpath(self.build_dir) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12', mode = 511 226s verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_skbuild/linux-s390x-3.12/setuptools/scripts-3.12' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/scripts-3.12'] 226s d = 'scripts-3.12' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/scripts-3.12' 226s tail = 'scripts-3.12' 226s tails = ['scripts-3.12'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_cmake_test_compile/build 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_skbuild/linux-s390x-3.12/cmake-install/./foo.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_skbuild/linux-s390x-3.12/cmake-install/./bar.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-79/script_keyword0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-79/script_keyword0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_ext 226s INFO root:dist.py:986 running build_scripts 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/scripts-3.12 226s ________________________ test_py_modules_keyword[pure] _________________________ 226s 226s distribution_type = 'pure' 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff84fa9b80> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff853f4710> 226s 226s @pytest.mark.parametrize("distribution_type", ["pure", "skbuild"]) 226s def test_py_modules_keyword(distribution_type, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # 226s # "SOURCE" tree layout for "pure" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # foo.py 226s # bar.py 226s # 226s # "SOURCE" tree layout for "skbuild" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # CMakeLists.txt 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout is identical for both 226s # 226s # ROOT/ 226s # foo.py 226s # bar.py 226s # 226s 226s tmp_dir = _tmpdir("py_modules_keyword") 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s """ 226s from skbuild import setup 226s setup( 226s name="test_py_modules_keyword", 226s version="1.2.3", 226s description="a package testing use of py_modules keyword", 226s author='The scikit-build team', 226s license="MIT", 226s py_modules=['foo', 'bar'] 226s ) 226s """ 226s ) 226s ) 226s 226s if distribution_type == "skbuild": 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(foobar NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/foo.py" "# foo.py") 226s file(WRITE "${CMAKE_BINARY_DIR}/bar.py" "# bar.py") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/foo.py" 226s "${CMAKE_BINARY_DIR}/bar.py" 226s DESTINATION "." 226s ) 226s """ 226s ) 226s ) 226s 226s messages = [ 226s f"copying {CMAKE_INSTALL_DIR()}/{module}.py -> {SKBUILD_DIR()}/setuptools/lib" for module in ["foo", "bar"] 226s ] 226s 226s elif distribution_type == "pure": 226s tmp_dir.join("foo.py").write("# foo.py") 226s tmp_dir.join("bar.py").write("# bar.py") 226s 226s messages = [f"copying {module}.py -> {SKBUILD_DIR()}/setuptools/lib" for module in ["foo", "bar"]] 226s 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff853f4710> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff84fa9b80> 226s distribution_type = 'pure' 226s messages = ['copying foo.py -> _skbuild/linux-s390x-3.12/setuptools/lib', 'copying bar.py -> _skbuild/linux-s390x-3.12/setuptools/lib'] 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-80/py_modules_keyword0') 226s 226s tests/test_setup.py:529: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-80/py_modules_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d5b3c0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85a76d40> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-80/py_modules_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85d5b3c0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85a76d40> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['build'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = False 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a package testing use of py_modules keyword', 'license': 'MIT', ...} 226s make_args = [] 226s plat_name = None 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = True 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a package testing use of py_modules keyword', 'license': 'MIT', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'description': 'a package testing use of py_modules keyword', 'license': 'MIT', ...} 226s dist = 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'foo' 226s module_file = 'foo.py' 226s modules = [('', 'foo', 'foo.py'), ('', 'bar', 'bar.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'foo' 226s module_file = 'foo.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'foo' 226s module_file = 'foo.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib' 226s module = 'foo' 226s module_file = 'foo.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib/foo.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-80/py_modules_keyword0/_skbuild' 226s created_dirs = ['_skbuild'] 226s d = '_skbuild' 226s dry_run = False 226s head = '_skbuild' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib' 226s tail = '_skbuild' 226s tails = ['_skbuild', 'linux-s390x-3.12', 'setuptools', 'lib'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s skipping skbuild (no CMakeLists.txt found) 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild 226s _______________________ test_py_modules_keyword[skbuild] _______________________ 226s 226s distribution_type = 'skbuild' 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff84faa330> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff8532aed0> 226s 226s @pytest.mark.parametrize("distribution_type", ["pure", "skbuild"]) 226s def test_py_modules_keyword(distribution_type, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # 226s # "SOURCE" tree layout for "pure" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # foo.py 226s # bar.py 226s # 226s # "SOURCE" tree layout for "skbuild" distribution: 226s # 226s # ROOT/ 226s # setup.py 226s # CMakeLists.txt 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout is identical for both 226s # 226s # ROOT/ 226s # foo.py 226s # bar.py 226s # 226s 226s tmp_dir = _tmpdir("py_modules_keyword") 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s """ 226s from skbuild import setup 226s setup( 226s name="test_py_modules_keyword", 226s version="1.2.3", 226s description="a package testing use of py_modules keyword", 226s author='The scikit-build team', 226s license="MIT", 226s py_modules=['foo', 'bar'] 226s ) 226s """ 226s ) 226s ) 226s 226s if distribution_type == "skbuild": 226s tmp_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(foobar NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/foo.py" "# foo.py") 226s file(WRITE "${CMAKE_BINARY_DIR}/bar.py" "# bar.py") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/foo.py" 226s "${CMAKE_BINARY_DIR}/bar.py" 226s DESTINATION "." 226s ) 226s """ 226s ) 226s ) 226s 226s messages = [ 226s f"copying {CMAKE_INSTALL_DIR()}/{module}.py -> {SKBUILD_DIR()}/setuptools/lib" for module in ["foo", "bar"] 226s ] 226s 226s elif distribution_type == "pure": 226s tmp_dir.join("foo.py").write("# foo.py") 226s tmp_dir.join("bar.py").write("# bar.py") 226s 226s messages = [f"copying {module}.py -> {SKBUILD_DIR()}/setuptools/lib" for module in ["foo", "bar"]] 226s 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff8532aed0> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff84faa330> 226s distribution_type = 'skbuild' 226s messages = ['copying _skbuild/linux-s390x-3.12/cmake-install/foo.py -> _skbuild/linux-s390x-3.12/setuptools/lib', 'copying _skbuild/linux-s390x-3.12/cmake-install/bar.py -> _skbuild/linux-s390x-3.12/setuptools/lib'] 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0') 226s 226s tests/test_setup.py:529: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85e832d0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85746e80> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff85e832d0, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85746e80> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/foo.py', '_skbuild/linux-s390x-3.12/cmake-install/bar.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bar': True, 'foo': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package_data = {'': ['foo.py', 'bar.py']} 226s package_dir = {} 226s package_prefixes = [] 226s packages = [] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['foo', 'bar'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s dist = .BinaryDistribution object at 0x3ff85736750> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff85736750> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff85736750> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85736750> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff85736750> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85736750> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff85736750> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'foo' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/foo.py' 226s modules = [('', 'foo', '_skbuild/linux-s390x-3.12/cmake-install/foo.py'), ('', 'bar', '_skbuild/linux-s390x-3.12/cmake-install/bar.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'foo' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/foo.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'foo' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/foo.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'foo' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/foo.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/foo.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_cmake_test_compile/build 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_skbuild/linux-s390x-3.12/cmake-install/./foo.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_skbuild/linux-s390x-3.12/cmake-install/./bar.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-81/py_modules_keyword0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ___________________ test_cmake_install_into_pure_package[0] ____________________ 226s 226s with_cmake_source_dir = 0 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff8538e930> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff8538c2c0> 226s 226s @pytest.mark.parametrize("with_cmake_source_dir", [0, 1]) 226s def test_cmake_install_into_pure_package(with_cmake_source_dir, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # "SOURCE" tree layout: 226s # 226s # (1) with_cmake_source_dir == 0 226s # 226s # ROOT/ 226s # 226s # CMakeLists.txt 226s # setup.py 226s # 226s # fruits/ 226s # __init__.py 226s # 226s # 226s # (2) with_cmake_source_dir == 1 226s # 226s # ROOT/ 226s # 226s # setup.py 226s # 226s # fruits/ 226s # __init__.py 226s # 226s # src/ 226s # 226s # CMakeLists.txt 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout: 226s # 226s # ROOT/ 226s # 226s # fruits/ 226s # 226s # __init__.py 226s # apple.py 226s # banana.py 226s # 226s # data/ 226s # 226s # apple.dat 226s # banana.dat 226s # 226s 226s tmp_dir = _tmpdir("cmake_install_into_pure_package") 226s 226s cmake_source_dir = "src" if with_cmake_source_dir else "" 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s f""" 226s from skbuild import setup 226s setup( 226s name="test_py_modules_keyword", 226s version="1.2.3", 226s description="a package testing use of py_modules keyword", 226s author='The scikit-build team', 226s license="MIT", 226s packages=['fruits'], 226s cmake_install_dir='fruits', 226s cmake_source_dir='{cmake_source_dir}', 226s ) 226s """ 226s ) 226s ) 226s 226s cmake_src_dir = tmp_dir.ensure(cmake_source_dir, dir=1) 226s cmake_src_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(test NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/apple.py" "# apple.py") 226s file(WRITE "${CMAKE_BINARY_DIR}/banana.py" "# banana.py") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/apple.py" 226s "${CMAKE_BINARY_DIR}/banana.py" 226s DESTINATION "." 226s ) 226s file(WRITE "${CMAKE_BINARY_DIR}/apple.dat" "# apple.dat") 226s file(WRITE "${CMAKE_BINARY_DIR}/banana.dat" "# banana.dat") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/apple.dat" 226s "${CMAKE_BINARY_DIR}/banana.dat" 226s DESTINATION "data" 226s ) 226s """ 226s ) 226s ) 226s 226s tmp_dir.ensure("fruits/__init__.py") 226s 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff8538c2c0> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff8538e930> 226s cmake_source_dir = '' 226s cmake_src_dir = local('/tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0') 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0') 226s with_cmake_source_dir = 0 226s 226s tests/test_setup.py:1030: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f5130, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff853c0f40> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f5130, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff853c0f40> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = 'fruits' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/fruits/apple.py', '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py'...inux-s390x-3.12/cmake-install/fruits/data/apple.dat', '_skbuild/linux-s390x-3.12/cmake-install/fruits/data/banana.dat'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'fruits' 226s package_data = {'fruits': ['apple.py', 'banana.py', 'data/apple.dat', 'data/banana.dat', '__init__.py']} 226s package_dir = {'fruits': 'fruits'} 226s package_prefixes = [('fruits', 'fruits')] 226s packages = ['fruits'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s dist = .BinaryDistribution object at 0x3ff8538d460> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff8538d460> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff8538d460> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff8538d460> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff8538d460> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff8538d460> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff8538d460> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s modules = [('fruits', 'banana', '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py'), ('fruits', '__init__', '_skbuild/li....12/cmake-install/fruits/__init__.py'), ('fruits', 'apple', '_skbuild/linux-s390x-3.12/cmake-install/fruits/apple.py')] 226s package = 'fruits' 226s package_ = 'fruits' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/fruits' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s package = 'fruits' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s package = 'fruits' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits/banana.py' 226s package = ['fruits'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'fruits'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_cmake_test_compile/build 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/./apple.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/./banana.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/data/apple.dat 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/data/banana.dat 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-146/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s 226s copying fruits/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/fruits/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s ___________________ test_cmake_install_into_pure_package[1] ____________________ 226s 226s with_cmake_source_dir = 1 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff8538e7e0> 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff8538ea80> 226s 226s @pytest.mark.parametrize("with_cmake_source_dir", [0, 1]) 226s def test_cmake_install_into_pure_package(with_cmake_source_dir, capsys, caplog): 226s # ------------------------------------------------------------------------- 226s # "SOURCE" tree layout: 226s # 226s # (1) with_cmake_source_dir == 0 226s # 226s # ROOT/ 226s # 226s # CMakeLists.txt 226s # setup.py 226s # 226s # fruits/ 226s # __init__.py 226s # 226s # 226s # (2) with_cmake_source_dir == 1 226s # 226s # ROOT/ 226s # 226s # setup.py 226s # 226s # fruits/ 226s # __init__.py 226s # 226s # src/ 226s # 226s # CMakeLists.txt 226s # 226s # ------------------------------------------------------------------------- 226s # "BINARY" distribution layout: 226s # 226s # ROOT/ 226s # 226s # fruits/ 226s # 226s # __init__.py 226s # apple.py 226s # banana.py 226s # 226s # data/ 226s # 226s # apple.dat 226s # banana.dat 226s # 226s 226s tmp_dir = _tmpdir("cmake_install_into_pure_package") 226s 226s cmake_source_dir = "src" if with_cmake_source_dir else "" 226s 226s tmp_dir.join("setup.py").write( 226s textwrap.dedent( 226s f""" 226s from skbuild import setup 226s setup( 226s name="test_py_modules_keyword", 226s version="1.2.3", 226s description="a package testing use of py_modules keyword", 226s author='The scikit-build team', 226s license="MIT", 226s packages=['fruits'], 226s cmake_install_dir='fruits', 226s cmake_source_dir='{cmake_source_dir}', 226s ) 226s """ 226s ) 226s ) 226s 226s cmake_src_dir = tmp_dir.ensure(cmake_source_dir, dir=1) 226s cmake_src_dir.join("CMakeLists.txt").write( 226s textwrap.dedent( 226s """ 226s cmake_minimum_required(VERSION 3.5.0) 226s project(test NONE) 226s file(WRITE "${CMAKE_BINARY_DIR}/apple.py" "# apple.py") 226s file(WRITE "${CMAKE_BINARY_DIR}/banana.py" "# banana.py") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/apple.py" 226s "${CMAKE_BINARY_DIR}/banana.py" 226s DESTINATION "." 226s ) 226s file(WRITE "${CMAKE_BINARY_DIR}/apple.dat" "# apple.dat") 226s file(WRITE "${CMAKE_BINARY_DIR}/banana.dat" "# banana.dat") 226s install( 226s FILES 226s "${CMAKE_BINARY_DIR}/apple.dat" 226s "${CMAKE_BINARY_DIR}/banana.dat" 226s DESTINATION "data" 226s ) 226s """ 226s ) 226s ) 226s 226s tmp_dir.ensure("fruits/__init__.py") 226s 226s > with execute_setup_py(tmp_dir, ["build"], disable_languages_test=True): 226s 226s caplog = <_pytest.logging.LogCaptureFixture object at 0x3ff8538ea80> 226s capsys = <_pytest.capture.CaptureFixture object at 0x3ff8538e7e0> 226s cmake_source_dir = 'src' 226s cmake_src_dir = local('/tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/src') 226s tmp_dir = local('/tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0') 226s with_cmake_source_dir = 1 226s 226s tests/test_setup.py:1030: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f4c30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85392fc0> 226s setup.py:3: in 226s setup( 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff857f4c30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85392fc0> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = 'fruits' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/fruits/apple.py', '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py'...inux-s390x-3.12/cmake-install/fruits/data/apple.dat', '_skbuild/linux-s390x-3.12/cmake-install/fruits/data/banana.dat'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = 'src' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {} 226s package = 'fruits' 226s package_data = {'fruits': ['apple.py', 'banana.py', 'data/apple.dat', 'data/banana.dat', 'fruits/__init__.py']} 226s package_dir = {'fruits': 'fruits'} 226s package_prefixes = [('fruits', 'fruits')] 226s packages = ['fruits'] 226s plat_name = None 226s process_manifest = None 226s py_modules = [] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a package testing use of py_modules keyword', ...} 226s dist = .BinaryDistribution object at 0x3ff8530df40> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff8530df40> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff8530df40> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff8530df40> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff8530df40> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff8530df40> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff8530df40> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:74: in run 226s self.build_packages() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:379: in build_packages 226s self.build_module(module, module_file, package) 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s modules = [('fruits', 'banana', '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py'), ('fruits', '__init__', '_skbuild/li....12/cmake-install/fruits/__init__.py'), ('fruits', 'apple', '_skbuild/linux-s390x-3.12/cmake-install/fruits/apple.py')] 226s package = 'fruits' 226s package_ = 'fruits' 226s package_dir = '_skbuild/linux-s390x-3.12/cmake-install/fruits' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s package = 'fruits' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s package = 'fruits' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s module = 'banana' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/fruits/banana.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits/banana.py' 226s package = ['fruits'] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/fruits' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312', 'fruits'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Not searching for unused variables given on the command line. 226s -- Configuring incomplete, errors occurred! 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_cmake_test_compile/build 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/./apple.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/./banana.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/data/apple.dat 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits/data/banana.dat 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Ninja' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Ninja' generator - failure 226s -------------------------------------------------------------------------------- 226s 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/src -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-147/cmake_install_into_pure_packag0/_skbuild/linux-s390x-3.12/cmake-install/fruits -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s 226s copying fruits/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/fruits/__init__.py 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s _____________________ test_generator[Unix Makefiles-make] ______________________ 226s 226s generator = 'Unix Makefiles', expected_make_program = 'make' 226s 226s @pytest.mark.parametrize( 226s ("generator", "expected_make_program"), [("NMake Makefiles", "nmake"), ("Unix Makefiles", "make")] 226s ) 226s def test_generator(generator, expected_make_program): 226s generator_platform = {"NMake Makefiles": ["windows"], "Unix Makefiles": ["darwin", "linux"]} 226s assert generator in generator_platform 226s 226s this_platform = platform.system().lower() 226s if this_platform not in generator_platform[generator]: 226s pytest.skip(f"{generator} generator is not available on {this_platform.title()}") 226s 226s @project_setup_py_test("hello-cpp", ["build"], ret=True) 226s def run_build(): 226s pass 226s 226s with push_env(CMAKE_GENERATOR=generator): 226s > tmp_dir = run_build()[0] 226s 226s expected_make_program = 'make' 226s generator = 'Unix Makefiles' 226s generator_platform = {'NMake Makefiles': ['windows'], 'Unix Makefiles': ['darwin', 'linux']} 226s run_build = .run_build at 0x3ff853c19e0> 226s this_platform = 'linux' 226s 226s tests/test_skbuild.py:91: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s tests/__init__.py:261: in wrapped 226s with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s disable_languages_test = False 226s fun = .run_build at 0x3ff853c2020> 226s iargs = () 226s ikwargs = {} 226s ret = True 226s wrapped = .run_build at 0x3ff853c19e0> 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:247: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-151/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff84d09460, file "setup.py", line 1> 226s setup.py:5: in 226s version="1.2.3", 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = False 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-151/run_build0') 226s setup = 226s setup_args = ['build'] 226s setup_code = at 0x3ff84d09460, file "setup.py", line 1> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = ['_skbuild/linux-s390x-3.12/cmake-install/helloModule.py', '_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so', '_skbuild/linux-s390x-3.12/cmake-install/hello/world.py'] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['build'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s make_args = ['--config', 'Release'] 226s new_py_modules = {'bonjourModule': False, 'helloModule': True} 226s new_scripts = {} 226s original_manifestin_data_files = [] 226s original_package_data = {'bonjour': ['data/*.txt', 'data/terre.txt']} 226s package = 'hello' 226s package_data = {'': ['bonjourModule.py', 'helloModule.py'], 'bonjour': ['data/*.txt', 'data/terre.txt', '__init__.py'], 'hello': ['_hello.cpython-312-s390x-linux-gnu.so', 'world.py', '__init__.py', '__main__.py']} 226s package_dir = {'bonjour': 'bonjour', 'hello': 'hello'} 226s package_prefixes = [('bonjour', 'bonjour'), ('hello', 'hello')] 226s packages = ['bonjour', 'hello'] 226s plat_name = None 226s process_manifest = None 226s py_modules = ['bonjourModule', 'helloModule'] 226s scripts = [] 226s skip_cmake = False 226s skip_generator_test = False 226s skip_skbuild = False 226s /usr/lib/python3/dist-packages/setuptools/__init__.py:103: in setup 226s return distutils.core.setup(**attrs) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:184: in setup 226s return run_commands(dist) 226s attrs = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , ...}, 'data_files': [], 'description': 'a minimal example package', ...} 226s dist = .BinaryDistribution object at 0x3ff853f3410> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff853f3410> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'build' 226s self = .BinaryDistribution object at 0x3ff853f3410> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff853f3410> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build' 226s self = .BinaryDistribution object at 0x3ff853f3410> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py:135: in run 226s self.run_command(cmd_name) 226s cmd_name = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'build_py' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff853f3410> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'build_py' 226s self = .BinaryDistribution object at 0x3ff853f3410> 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:41: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:71: in run 226s self.build_modules() 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:359: in build_modules 226s self.build_module(module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s modules = [('', 'bonjourModule', '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py'), ('', 'helloModule', '_skbuild/linux-s390x-3.12/cmake-install/helloModule.py')] 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/build_py.py:31: in build_module 226s super().build_module(module, module_file, package) # type: ignore[no-untyped-call] 226s __class__ = 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/build_py.py:89: in build_module 226s outfile, copied = orig.build_py.build_module(self, module, module_file, package) 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s package = '' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/build_py.py:349: in build_module 226s self.mkpath(dir) 226s dir = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s module = 'bonjourModule' 226s module_file = '_skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py' 226s outfile = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312/bonjourModule.py' 226s package = [''] 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511, verbose = True, dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s created_dirs = ['_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312'] 226s d = 'lib.linux-s390x-cpython-312' 226s dry_run = False 226s head = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s mode = 511 226s name = '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' 226s tail = 'lib.linux-s390x-cpython-312' 226s tails = ['lib.linux-s390x-cpython-312'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-151/run_build0/.git/ 226s [master (root-commit) 8b9c3c3] Initial commit 226s 11 files changed, 115 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 bonjour/__init__.py 226s create mode 100644 bonjour/data/ciel.txt 226s create mode 100644 bonjour/data/soleil.txt 226s create mode 100644 bonjour/data/terre.txt 226s create mode 100644 bonjourModule.py 226s create mode 100644 hello/CMakeLists.txt 226s create mode 100644 hello/__init__.py 226s create mode 100644 hello/__main__.py 226s create mode 100644 hello/_hello.cxx 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Configuring done (0.8s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-151/run_build0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-151/run_build0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- The C compiler identification is GNU 14.1.0 226s -- The CXX compiler identification is GNU 14.1.0 226s -- Detecting C compiler ABI info 226s -- Detecting C compiler ABI info - done 226s -- Check for working C compiler: /usr/bin/cc - skipped 226s -- Detecting C compile features 226s -- Detecting C compile features - done 226s -- Detecting CXX compiler ABI info 226s -- Detecting CXX compiler ABI info - done 226s -- Check for working CXX compiler: /usr/bin/c++ - skipped 226s -- Detecting CXX compile features 226s -- Detecting CXX compile features - done 226s -- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.4") 226s -- Found PythonLibs: /usr/lib/s390x-linux-gnu/libpython3.12.so (found version "3.12.4") 226s -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success 226s -- Configuring done (1.1s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/cmake-build 226s [ 50%] Building CXX object hello/CMakeFiles/_hello.dir/_hello.cxx.o 226s [100%] Linking CXX shared module _hello.cpython-312-s390x-linux-gnu.so 226s [100%] Built target _hello 226s Install the project... 226s -- Install configuration: "Release" 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/cmake-install/./helloModule.py 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/_hello.cpython-312-s390x-linux-gnu.so 226s -- Installing: /tmp/pytest-of-ubuntu/pytest-151/run_build0/_skbuild/linux-s390x-3.12/cmake-install/hello/world.py 226s 226s copying bonjourModule.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjourModule.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour 226s copying bonjour/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/__init__.py 226s copying hello/__init__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__init__.py 226s copying hello/__main__.py -> _skbuild/linux-s390x-3.12/cmake-install/hello/__main__.py 226s creating directory _skbuild/linux-s390x-3.12/cmake-install/bonjour/data 226s copying /tmp/pytest-of-ubuntu/pytest-151/run_build0/bonjour/data/soleil.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/soleil.txt 226s copying /tmp/pytest-of-ubuntu/pytest-151/run_build0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s copying /tmp/pytest-of-ubuntu/pytest-151/run_build0/bonjour/data/ciel.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/ciel.txt 226s copying /tmp/pytest-of-ubuntu/pytest-151/run_build0/bonjour/data/terre.txt -> _skbuild/linux-s390x-3.12/cmake-install/bonjour/data/terre.txt 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s CMake Warning (dev) at /usr/lib/python3/dist-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package): 226s Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules 226s are removed. Run "cmake --help-policy CMP0148" for policy details. Use 226s the cmake_policy command to set the policy and suppress this warning. 226s 226s Call Stack (most recent call first): 226s CMakeLists.txt:5 (find_package) 226s This warning is for project developers. Use -Wno-dev to suppress it. 226s 226s _modinit_prefix:PyInit_ 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_py 226s INFO root:dir_util.py:70 creating _skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312 226s _________________________ test_skbuild_variable_sdist __________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-155/test_skbuild_variable_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff858ddc30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85487b00> 226s setup.py:5: in 226s version="1.2.3", 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-155/test_skbuild_variable_sdist0') 226s setup = 226s setup_args = ['sdist'] 226s setup_code = at 0x3ff858ddc30, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85487b00> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:513: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s build_ext_inplace = False 226s cmake_args = () 226s cmake_args_from_args = [] 226s cmake_executable = None 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s commands = ['sdist'] 226s display_only = False 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , 'bdist_wheel': , 'bdist_wheel': 226s klass = 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'sdist' 226s self = 226s /usr/lib/python3/dist-packages/skbuild/command/sdist.py:39: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/sdist.py:52: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'fail_unless_skbuild_set.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'fail_unless_skbuild_set.egg-info', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-155/test_skbuild_variable_sdist0/fail_unless_skbuild_set.egg-info' 226s created_dirs = ['fail_unless_skbuild_set.egg-info'] 226s d = 'fail_unless_skbuild_set.egg-info' 226s dry_run = False 226s head = 'fail_unless_skbuild_set.egg-info' 226s mode = 511 226s name = 'fail_unless_skbuild_set.egg-info' 226s tail = 'fail_unless_skbuild_set.egg-info' 226s tails = ['fail_unless_skbuild_set.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-155/test_skbuild_variable_sdist0/.git/ 226s [master (root-commit) 5a2655a] Initial commit 226s 2 files changed, 20 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 setup.py 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running sdist 226s INFO root:dist.py:986 running generate_source_manifest 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating fail_unless_skbuild_set.egg-info 226s _________________________ test_skbuild_variable_wheel __________________________ 226s 226s iargs = (), ikwargs = {} 226s 226s @functools.wraps(fun) 226s def wrapped(*iargs, **ikwargs): 226s if wrapped.tmp_dir is None: # type: ignore[attr-defined] 226s wrapped.tmp_dir = _tmpdir(fun.__name__) # type: ignore[attr-defined] 226s prepare_project(wrapped.project, wrapped.tmp_dir) # type: ignore[attr-defined] 226s initialize_git_repo_and_commit(wrapped.tmp_dir, verbose=wrapped.verbose_git) # type: ignore[attr-defined] 226s 226s > with execute_setup_py(wrapped.tmp_dir, wrapped.setup_args, disable_languages_test=disable_languages_test): # type: ignore[attr-defined] 226s 226s disable_languages_test = True 226s fun = 226s iargs = () 226s ikwargs = {} 226s ret = False 226s wrapped = 226s 226s tests/__init__.py:261: 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s /usr/lib/python3.12/contextlib.py:137: in __enter__ 226s return next(self.gen) 226s self = 226s tests/__init__.py:244: in execute_setup_py 226s exec(setup_code) 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff857f4130, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85b62020> 226s setup.py:5: in 226s version="1.2.3", 226s annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) 226s disable_languages_test = True 226s fp = <_io.TextIOWrapper name='setup.py' mode='r' encoding='UTF-8'> 226s original_write_test_cmakelist = 226s platform = 226s project_dir = local('/tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0') 226s setup = 226s setup_args = ['bdist_wheel'] 226s setup_code = at 0x3ff857f4130, file "setup.py", line 1> 226s write_test_cmakelist_no_languages = .write_test_cmakelist_no_languages at 0x3ff85b62020> 226s /usr/lib/python3/dist-packages/skbuild/setuptools_wrap.py:781: in setup 226s return setuptools.setup(**kw) # type: ignore[no-any-return, func-returns-value] 226s BinaryDistribution = .BinaryDistribution'> 226s build_ext_inplace = False 226s cmake_args = ['-DCMAKE_BUILD_TYPE:STRING=Release'] 226s cmake_args_from_args = [] 226s cmake_executable = '/usr/bin/cmake' 226s cmake_install_dir = '' 226s cmake_install_target = 'install' 226s cmake_install_target_from_command = '' 226s cmake_install_target_from_setup = 'install' 226s cmake_languages = ('C', 'CXX') 226s cmake_manifest = [] 226s cmake_minimum_required_version = None 226s cmake_process_manifest_hook = None 226s cmake_source_dir = '' 226s cmake_spec = {'args': ['/usr/bin/cmake', '-DCMAKE_BUILD_TYPE:STRING=Release'], 'environment': {'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/path/to/anything'}, 'version': '3.29.6'} 226s cmake_with_sdist = False 226s cmdclass = {'bdist': , 'bdist_wheel': , 'build': , 'build_ext': , ...} 226s cmkr = 226s commands = ['bdist_wheel'] 226s config_type = 'Release' 226s data_files = {} 226s developer_mode = False 226s display_only = False 226s env = {'ADTTMP': '/tmp/autopkgtest.3YS33m/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', 'ADT_TEST_TRIGGERS': 'setuptools/70.3.0-2', 'AUTOPKGTEST_ARTIFACTS': '/tmp/autopkgtest.3YS33m/testsuite-artifacts', ...} 226s env_cmake_args = [] 226s force_cmake = False 226s has_cmakelists = True 226s has_invalid_arguments = False 226s help_commands = 0 226s hide_listing = False 226s kw = {'author': 'The scikit-build team', 'cmdclass': {'bdist': , 'bdist_wheel': , 'bdist_wheel': , 'bdist_wheel': .BinaryDistribution object at 0x3ff853f5580> 226s klass = .BinaryDistribution'> 226s ok = True 226s /usr/lib/python3/dist-packages/setuptools/_distutils/core.py:200: in run_commands 226s dist.run_commands() 226s dist = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:970: in run_commands 226s self.run_command(cmd) 226s cmd = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'bdist_wheel' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/skbuild/command/bdist_wheel.py:33: in run 226s super().run(*args, **kwargs) 226s __class__ = 226s args = () 226s kwargs = {} 226s old_write_files = 226s self = 226s update_write_files = .update_write_files at 0x3ff85744720> 226s /usr/lib/python3/dist-packages/wheel/bdist_wheel.py:403: in run 226s self.run_command("install") 226s basedir_observed = '' 226s build_ext = 226s build_scripts = 226s install = 226s install_scripts = 226s key = 'platlib' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'install' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'install' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'install' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/command/install.py:81: in run 226s return super().run() 226s __class__ = 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py:705: in run 226s self.run_command(cmd_name) 226s build_plat = 'linux-s390x' 226s cmd_name = 'install_egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'install_egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'install_egg_info' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'install_egg_info' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/command/install_egg_info.py:48: in run 226s self.run_command('egg_info') 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:316: in run_command 226s self.distribution.run_command(command) 226s command = 'egg_info' 226s self = 226s /usr/lib/python3/dist-packages/setuptools/dist.py:974: in run_command 226s super().run_command(command) 226s __class__ = 226s command = 'egg_info' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:989: in run_command 226s cmd_obj.run() 226s cmd_obj = 226s command = 'egg_info' 226s self = .BinaryDistribution object at 0x3ff853f5580> 226s /usr/lib/python3/dist-packages/setuptools/command/egg_info.py:306: in run 226s self.mkpath(self.egg_info) 226s self = 226s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:340: in mkpath 226s dir_util.mkpath(name, mode, dry_run=self.dry_run) 226s mode = 511 226s name = 'fail_unless_skbuild_set.egg-info' 226s self = 226s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 226s 226s name = 'fail_unless_skbuild_set.egg-info', mode = 511, verbose = True 226s dry_run = False 226s 226s def mkpath(name, mode=0o777, verbose=True, dry_run=False): # noqa: C901 226s """Create a directory and any missing ancestor directories. 226s 226s If the directory already exists (or if 'name' is the empty string, which 226s means the current directory, which of course exists), then do nothing. 226s Raise DistutilsFileError if unable to create some directory along the way 226s (eg. some sub-path exists, but is a file rather than a directory). 226s If 'verbose' is true, print a one-line summary of each mkdir to stdout. 226s Return the list of directories actually created. 226s 226s os.makedirs is not used because: 226s 226s a) It's new to Python 1.5.2, and 226s b) it blows up if the directory already exists (in which case it should 226s silently succeed). 226s """ 226s 226s global _path_created 226s 226s # Detect a common bug -- name is None 226s if not isinstance(name, str): 226s raise DistutilsInternalError(f"mkpath: 'name' must be a string (got {name!r})") 226s 226s # XXX what's the better way to handle verbosity? print as we create 226s # each directory in the path (the current behaviour), or only announce 226s # the creation of the whole path? (quite easy to do the latter since 226s # we're not using a recursive algorithm) 226s 226s name = os.path.normpath(name) 226s created_dirs = [] 226s if os.path.isdir(name) or name == '': 226s return created_dirs 226s if os.path.abspath(name) in _path_created: 226s return created_dirs 226s 226s (head, tail) = os.path.split(name) 226s tails = [tail] # stack of lone dirs to create 226s 226s while head and tail and not os.path.isdir(head): 226s (head, tail) = os.path.split(head) 226s tails.insert(0, tail) # push next higher dir onto stack 226s 226s # now 'head' contains the deepest directory that already exists 226s # (that is, the child of 'head' in 'name' is the highest directory 226s # that does *not* exist) 226s for d in tails: 226s # print "head = %s, d = %s: " % (head, d), 226s head = os.path.join(head, d) 226s abs_head = os.path.abspath(head) 226s 226s if abs_head in _path_created: 226s continue 226s 226s if verbose >= 1: 226s log.info("creating %s", head) 226s 226s if not dry_run: 226s try: 226s os.mkdir(head, mode) 226s except OSError as exc: 226s if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 226s raise DistutilsFileError( 226s f"could not create '{head}': {exc.args[-1]}" 226s ) 226s created_dirs.append(head) 226s 226s > _path_created.add(abs_head) 226s E AttributeError: 'dict' object has no attribute 'add' 226s 226s abs_head = '/tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0/fail_unless_skbuild_set.egg-info' 226s created_dirs = ['fail_unless_skbuild_set.egg-info'] 226s d = 'fail_unless_skbuild_set.egg-info' 226s dry_run = False 226s head = 'fail_unless_skbuild_set.egg-info' 226s mode = 511 226s name = 'fail_unless_skbuild_set.egg-info' 226s tail = 'fail_unless_skbuild_set.egg-info' 226s tails = ['fail_unless_skbuild_set.egg-info'] 226s verbose = True 226s 226s /usr/lib/python3/dist-packages/setuptools/_distutils/dir_util.py:82: AttributeError 226s ----------------------------- Captured stdout call ----------------------------- 226s Initialized empty Git repository in /tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0/.git/ 226s [master (root-commit) 5a2655a] Initial commit 226s 2 files changed, 20 insertions(+) 226s create mode 100644 CMakeLists.txt 226s create mode 100644 setup.py 226s 226s 226s -------------------------------------------------------------------------------- 226s -- Trying 'Unix Makefiles' generator 226s -------------------------------- 226s --------------------------- 226s ---------------------- 226s ----------------- 226s ------------ 226s ------- 226s -- 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0/_cmake_test_compile/build 226s -- 226s ------- 226s ------------ 226s ----------------- 226s ---------------------- 226s --------------------------- 226s -------------------------------- 226s -- Trying 'Unix Makefiles' generator - success 226s -------------------------------------------------------------------------------- 226s 226s Configuring Project 226s Working directory: 226s /tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0/_skbuild/linux-s390x-3.12/cmake-build 226s Command: 226s /usr/bin/cmake /tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0 -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0/_skbuild/linux-s390x-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.4 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/usr/lib/python3/dist-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.12 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/s390x-linux-gnu/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3.12 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_BUILD_TYPE:STRING=Release 226s 226s Not searching for unused variables given on the command line. 226s -- Configuring done (0.0s) 226s -- Generating done (0.0s) 226s -- Build files have been written to: /tmp/pytest-of-ubuntu/pytest-156/test_skbuild_variable_wheel0/_skbuild/linux-s390x-3.12/cmake-build 226s Install the project... 226s -- Install configuration: "Release" 226s 226s 226s ----------------------------- Captured stderr call ----------------------------- 226s hint: Using 'master' as the name for the initial branch. This default branch name 226s hint: is subject to change. To configure the initial branch name to use in all 226s hint: of your new repositories, which will suppress this warning, call: 226s hint: 226s hint: git config --global init.defaultBranch 226s hint: 226s hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 226s hint: 'development'. The just-created branch can be renamed via this command: 226s hint: 226s hint: git branch -m 226s CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 226s Compatibility with CMake < 3.5 will be removed from a future version of 226s CMake. 226s 226s Update the VERSION argument value or use a ... suffix to tell 226s CMake that the project does not need compatibility with older versions. 226s 226s 226s ------------------------------ Captured log call ------------------------------- 226s INFO root:dist.py:986 running bdist_wheel 226s INFO root:dist.py:986 running build 226s INFO root:dist.py:986 running build_ext 226s INFO wheel:bdist_wheel.py:401 installing to _skbuild/linux-s390x-3.12/setuptools/bdist.linux-s390x/wheel 226s INFO root:dist.py:986 running install 226s INFO root:dist.py:986 running install_lib 226s WARNING root:cmd.py:334 warning: install_lib: '_skbuild/linux-s390x-3.12/setuptools/lib.linux-s390x-cpython-312' does not exist -- no Python modules to install 226s 226s INFO root:dist.py:986 running install_egg_info 226s INFO root:dist.py:986 running egg_info 226s INFO root:dir_util.py:70 creating fail_unless_skbuild_set.egg-info 226s =========================== short test summary info ============================ 226s SKIPPED [1] tests/test_hello_fortran.py:18: could not import 'numpy': No module named 'numpy' 226s SKIPPED [1] tests/test_platform.py:120: Requires Windows 226s SKIPPED [24] tests/test_setup.py:584: unsupported configuration: python package fully generated by CMake does *NOT* work. At least __init__.py should be in the project source tree 226s SKIPPED [1] tests/test_skbuild.py:84: NMake Makefiles generator is not available on Linux 226s SKIPPED [3] tests/test_skbuild.py:127: Requires Windows 226s SKIPPED [1] tests/test_skbuild.py:151: Requires Windows 226s FAILED tests/test_cmakelists_not_in_top_level_dir.py::test_build - AttributeE... 226s FAILED tests/test_command_line.py::test_hide_listing[True-sdist] - AttributeE... 226s FAILED tests/test_command_line.py::test_hide_listing[True-bdist_wheel] - Attr... 226s FAILED tests/test_command_line.py::test_hide_listing[False-sdist] - Attribute... 226s FAILED tests/test_command_line.py::test_hide_listing[False-bdist_wheel] - Att... 226s FAILED tests/test_cython_flags.py::test_hello_cython_builds - AttributeError:... 226s FAILED tests/test_filter_manifest.py::test_bdist_wheel_command - AttributeErr... 226s FAILED tests/test_hello_cpp.py::test_hello_builds - AttributeError: 'dict' ob... 226s FAILED tests/test_hello_cpp.py::test_hello_wheel - AttributeError: 'dict' obj... 226s FAILED tests/test_hello_cpp.py::test_hello_clean[with-dry-run] - AttributeErr... 226s FAILED tests/test_hello_cpp.py::test_hello_clean[without-dry-run] - Attribute... 226s FAILED tests/test_hello_cpp.py::test_hello_cleans - AttributeError: 'dict' ob... 226s FAILED tests/test_hello_cython.py::test_hello_cython_builds - AttributeError:... 226s FAILED tests/test_hello_cython.py::test_hello_cython_sdist - AttributeError: ... 226s FAILED tests/test_hello_cython.py::test_hello_cython_wheel - AttributeError: ... 226s FAILED tests/test_hello_pure.py::test_hello_pure_builds - AttributeError: 'di... 226s FAILED tests/test_hello_pure.py::test_hello_pure_sdist - AttributeError: 'dic... 226s FAILED tests/test_hello_pure.py::test_hello_pure_wheel - AttributeError: 'dic... 226s FAILED tests/test_hello_pure.py::test_hello_clean - AttributeError: 'dict' ob... 226s FAILED tests/test_include_exclude_data.py::test_include_exclude_data - Attrib... 226s FAILED tests/test_include_exclude_data.py::test_include_exclude_data_with_base 226s FAILED tests/test_issue284_build_ext_inplace.py::test_build_ext_inplace_command 226s FAILED tests/test_issue335_support_cmake_source_dir.py::test_bdist_wheel_command 226s FAILED tests/test_issue668_symbol_visibility.py::test_symbol_visibility[ON] 226s FAILED tests/test_issue668_symbol_visibility.py::test_symbol_visibility[OFF] 226s FAILED tests/test_manifest_in.py::test_manifest_in_wheel - AttributeError: 'd... 226s FAILED tests/test_setup.py::test_distribution_is_pure[py_modules] - Attribute... 226s FAILED tests/test_setup.py::test_distribution_is_pure[packages] - AttributeEr... 226s FAILED tests/test_setup.py::test_cmake_install_dir_keyword[banana-False-str] 226s FAILED tests/test_setup.py::test_cmake_with_sdist_keyword[True] - AttributeEr... 226s FAILED tests/test_setup.py::test_cmake_with_sdist_keyword[False] - AttributeE... 226s FAILED tests/test_setup.py::test_script_keyword[pure] - AttributeError: 'dict... 226s FAILED tests/test_setup.py::test_script_keyword[skbuild] - AttributeError: 'd... 226s FAILED tests/test_setup.py::test_py_modules_keyword[pure] - AttributeError: '... 226s FAILED tests/test_setup.py::test_py_modules_keyword[skbuild] - AttributeError... 226s FAILED tests/test_setup.py::test_cmake_install_into_pure_package[0] - Attribu... 226s FAILED tests/test_setup.py::test_cmake_install_into_pure_package[1] - Attribu... 226s FAILED tests/test_skbuild.py::test_generator[Unix Makefiles-make] - Attribute... 226s FAILED tests/test_skbuild_variable.py::test_skbuild_variable_sdist - Attribut... 226s FAILED tests/test_skbuild_variable.py::test_skbuild_variable_wheel - Attribut... 226s ===== 40 failed, 152 passed, 31 skipped, 19 deselected in 75.70s (0:01:15) ===== 227s autopkgtest [16:07:00]: test testsuite: -----------------------] 228s autopkgtest [16:07:01]: test testsuite: - - - - - - - - - - results - - - - - - - - - - 228s testsuite FAIL non-zero exit status 1 228s autopkgtest [16:07:01]: @@@@@@@@@@@@@@@@@@@@ summary 228s testsuite FAIL non-zero exit status 1 242s nova [W] Using flock in scalingstack-bos01-s390x 242s Creating nova instance adt-oracular-s390x-scikit-build-20240726-160313-juju-7f2275-prod-proposed-migration-environment-2-0ca461fb-9930-44f2-9c1c-a1b56092e48e from image adt/ubuntu-oracular-s390x-server-20240726.img (UUID dfbcf47e-ed98-4bf2-ad84-36ab9700c5bd)...