Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with Python 3.12 or 3.13 #112

Open
defnull opened this issue Oct 16, 2024 · 1 comment
Open

Fails to build with Python 3.12 or 3.13 #112

defnull opened this issue Oct 16, 2024 · 1 comment

Comments

@defnull
Copy link

defnull commented Oct 16, 2024

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
Copy link
Author

defnull commented Oct 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant