EUDAT-B2HANDLE / PYHANDLE

Python library for HANDLE system
https://EUDAT-B2HANDLE.github.io/PYHANDLE/
Apache License 2.0
8 stars 13 forks source link

Fails to build with Python 3.12 or 3.13 #112

Open defnull opened 6 days ago

defnull commented 6 days ago

Pyhandle does not offer pre-built wheels and fails to build with modern versions of python.

Note: pip also tries to install an outdated release because pyhandle-1.1.1 was the last release with invalid Requires-Python metadata and all newer releases explicitly exclude Python 3.12+

6.173 Collecting pyhandle (from XXX)
6.228   Downloading pyhandle-1.1.1.tar.gz (76 kB)
6.267   Installing build dependencies: started
7.664   Installing build dependencies: finished with status 'done'
7.665   Getting requirements to build wheel: started
7.838   Getting requirements to build wheel: finished with status 'error'
7.843   error: subprocess-exited-with-error
7.843   
7.843   × Getting requirements to build wheel did not run successfully.
7.843   │ exit code: 1
7.843   ╰─> [14 lines of output]
7.843       <string>:7: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
7.843       !!
7.843       
7.843               ********************************************************************************
7.843               Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
7.843       
7.843               By 2024-Nov-15, you need to update your project and remove deprecated calls
7.843               or your builds will no longer be supported.
7.843               ********************************************************************************
7.843       
7.843       !!
7.843       /tmp/pip-build-env-6dwebqq3/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
7.843         warnings.warn(msg)
7.843       error in pyhandle setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.6.*<3.11'
7.843       [end of output]
7.843   
7.843   note: This error originates from a subprocess, and is likely not a problem with pip.
8.000 error: subprocess-exited-with-error
8.000 
8.000 × Getting requirements to build wheel did not run successfully.
8.000 │ exit code: 1
8.000 ╰─> See above for output.
8.000 
8.000 note: This error originates from a subprocess, and is likely not a problem with pip.
defnull commented 6 days ago

The problem may actually be a new version of setuptools and the use of deprecated (and now removed) features. When updating pip or setuptools before installing pyhandle, the build also fails in Python 3.11 docker containers.