Closed oberstet closed 1 year ago
wau. setuptools & github CI .. here is one trap:
setuptools
to the very latest 67.2.0 release to deal properly with https://peps.python.org/pep-0508/, which in turn I had to do to refer Python packages on GitHub including package/dist flavor, which I had to do since pip doesn't work with confluent package dependencies with upper version bounds2023-02-07T14:27:59.4302045Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.1.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:27:59.4305260Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.0.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:27:59.5261239Z Collecting autobahn[compress,encryption,scram,serialization,twisted,xbr]@ git+https://github.com/crossbario/autobahn-python.git@master#egg=autobahn
2023-02-07T14:27:59.5264919Z Cloning https://github.com/crossbario/autobahn-python.git (to revision master) to /tmp/pip-install-rykydwxl/autobahn_319acd15ed6c4053b71176cd9b6fc022
2023-02-07T14:27:59.5308452Z Running command git clone --filter=blob:none --quiet https://github.com/crossbario/autobahn-python.git /tmp/pip-install-rykydwxl/autobahn_319acd15ed6c4053b71176cd9b6fc022
2023-02-07T14:28:02.1600200Z Resolved https://github.com/crossbario/autobahn-python.git to commit 49c41440e16528ee6ab267df0f9989fb1ed81f7c
2023-02-07T14:28:02.1663041Z Preparing metadata (setup.py): started
2023-02-07T14:28:02.5335790Z Preparing metadata (setup.py): finished with status 'error'
2023-02-07T14:28:02.5469216Z error: subprocess-exited-with-error
2023-02-07T14:28:02.5470570Z
2023-02-07T14:28:02.5473002Z × python setup.py egg_info did not run successfully.
2023-02-07T14:28:02.5474162Z │ exit code: 1
2023-02-07T14:28:02.5475123Z ╰─> [20 lines of output]
2023-02-07T14:28:02.5477357Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'install_requires'
2023-02-07T14:28:02.5478812Z warnings.warn(msg)
2023-02-07T14:28:02.5482967Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'extras_require'
2023-02-07T14:28:02.5484405Z warnings.warn(msg)
2023-02-07T14:28:02.5486588Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'tests_require'
2023-02-07T14:28:02.5488020Z warnings.warn(msg)
2023-02-07T14:28:02.5490180Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'entry_points'
2023-02-07T14:28:02.5491572Z warnings.warn(msg)
2023-02-07T14:28:02.5493781Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'include_package_data'
2023-02-07T14:28:02.5495437Z warnings.warn(msg)
2023-02-07T14:28:02.5498164Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'zip_safe'
2023-02-07T14:28:02.5500305Z warnings.warn(msg)
2023-02-07T14:28:02.5503400Z /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'python_requires'
2023-02-07T14:28:02.5504887Z warnings.warn(msg)
2023-02-07T14:28:02.5505941Z usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
2023-02-07T14:28:02.5507354Z or: setup.py --help [cmd1 cmd2 ...]
2023-02-07T14:28:02.5508536Z or: setup.py --help-commands
2023-02-07T14:28:02.5509641Z or: setup.py cmd --help
2023-02-07T14:28:02.5510363Z
2023-02-07T14:28:02.5511336Z error: invalid command 'egg_info'
2023-02-07T14:28:02.5512159Z [end of output]
2023-02-07T14:28:02.5512812Z
2023-02-07T14:28:02.5513839Z note: This error originates from a subprocess, and is likely not a problem with pip.
2023-02-07T14:28:02.5515323Z error: metadata-generation-failed
2023-02-07T14:28:02.5515911Z
2023-02-07T14:28:02.5516729Z × Encountered error while generating package metadata.
2023-02-07T14:28:02.5517869Z ╰─> See above for output.
2023-02-07T14:28:02.5518359Z
2023-02-07T14:28:02.5518945Z note: This is an issue with the package mentioned above, not pip.
2023-02-07T14:28:02.5519960Z hint: See above for details.
2023-02-07T14:28:02.5779435Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.1.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:28:02.5782936Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.0.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:28:02.6345973Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.1.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:28:02.6350089Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.0.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:28:02.7519053Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.1.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:28:02.7523207Z WARNING: Skipping /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.0.0.dist-info due to invalid metadata entry 'name'
2023-02-07T14:28:02.9265718Z ##[error]Process completed with exit code 1.
as it turns out, GitHub job runner updated the Python package on the private build host BUT it left over crap in the filesystem
oberstet@matterhorn:~$ ll /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.1.0.dist-info
insgesamt 24
drwxr-xr-x 2 cbbuilder cbbuilder 4096 Feb 7 14:44 ./
drwxr-xr-x 486 cbbuilder cbbuilder 20480 Feb 7 15:16 ../
-rw-r--r-- 1 cbbuilder cbbuilder 0 Feb 7 03:13 REQUESTED
oberstet@matterhorn:~$ ll /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.0.0.dist-info
insgesamt 24
drwxr-xr-x 2 cbbuilder cbbuilder 4096 Feb 7 02:42 ./
drwxr-xr-x 486 cbbuilder cbbuilder 20480 Feb 7 15:16 ../
-rw-r--r-- 1 cbbuilder cbbuilder 0 Feb 1 12:00 REQUESTED
oberstet@matterhorn:~$ sudo rm -rf /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.0.0.dist-info
oberstet@matterhorn:~$ sudo rm -rf /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.1.0.dist-info
oberstet@matterhorn:~$ ll /opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/site-packages/setuptools-67.2.0.dist-info/
insgesamt 88
drwxr-xr-x 2 cbbuilder cbbuilder 4096 Feb 7 14:44 ./
drwxr-xr-x 484 cbbuilder cbbuilder 20480 Feb 7 16:40 ../
-rw-r--r-- 1 cbbuilder cbbuilder 2740 Feb 7 14:44 entry_points.txt
-rw-r--r-- 1 cbbuilder cbbuilder 4 Feb 7 14:44 INSTALLER
-rw-r--r-- 1 cbbuilder cbbuilder 1050 Feb 7 14:44 LICENSE
-rw-r--r-- 1 cbbuilder cbbuilder 6213 Feb 7 14:44 METADATA
-rw-r--r-- 1 cbbuilder cbbuilder 36204 Feb 7 14:44 RECORD
-rw-r--r-- 1 cbbuilder cbbuilder 0 Feb 7 14:44 REQUESTED
-rw-r--r-- 1 cbbuilder cbbuilder 41 Feb 7 14:44 top_level.txt
-rw-r--r-- 1 cbbuilder cbbuilder 92 Feb 7 14:44 WHEEL
oberstet@matterhorn:~$
and that crap triggered above error !!! aaaarrg =( after deleting the crap manually on the build host, the CI now seems to run
given the amount of time I spent on all of above shit again and again and again, the only conclusion is: deeply broken .. a big waste of time ... I am feeling like I am approaching the final stage: after confusion, digging, frustration, complaining - now facing the facts: stop complain and move on (Rust)