Skip to content

No longer builds using pip 23.3.2+ #39

Description

@nfantone

If using Python 3.12+ and pip 23.3.2+, func_timeout can no longer be installed.

pip --version && python --version

pip 23.3.2 from /opt/python/3.12.10/lib/python3.12/site-packages/pip (python 3.12)
Python 3.12.10
pip install func-timeout

  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: func-timeout
  Building wheel for func-timeout (setup.py): started
  Building wheel for func-timeout (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help

      error: invalid command 'bdist_wheel'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for func-timeout
  Running setup.py clean for func-timeout
Failed to build func-timeout
ERROR: Could not build wheels for func-timeout, which is required to install pyproject.toml-based projects

This can be worked around via --use-pep517, but adding the flag can be a hassle if using requirements.txt.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions