Skip to content

Build wheel unable to find documentation files (building from 2024-02-24 repo) #233

Closed
@God-damnit-all

Description

@God-damnit-all
> pip install tldr@git+https://github.com/tldr-pages/tldr-python-client#egg=tldr
Building wheels for collected packages: tldr
  Building wheel for tldr (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for tldr (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib
      copying tldr.py -> build\lib
      installing to build\bdist.win-amd64\wheel
      running install
      running install_lib
      creating build\bdist.win-amd64
      creating build\bdist.win-amd64\wheel
      copying build\lib\tldr.py -> build\bdist.win-amd64\wheel\.
      running install_data
      creating build\bdist.win-amd64\wheel\tldr-3.2.0.data
      creating build\bdist.win-amd64\wheel\tldr-3.2.0.data\data
      creating build\bdist.win-amd64\wheel\tldr-3.2.0.data\data\share
      creating build\bdist.win-amd64\wheel\tldr-3.2.0.data\data\share\man
      creating build\bdist.win-amd64\wheel\tldr-3.2.0.data\data\share\man\man1
      error: can't copy 'docs\man\tldr.1': doesn't exist or not a regular file
      [end of output]

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

When I removed the data_files= line of setup.py in a fork, it built successfully, but didn't create any documentation files.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions