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

pip fails when building wheel #19

Open
ceteri opened this issue Jul 21, 2023 · 0 comments
Open

pip fails when building wheel #19

ceteri opened this issue Jul 21, 2023 · 0 comments

Comments

@ceteri
Copy link

ceteri commented Jul 21, 2023

Thank you very much for building/publishing mkepub -

One minor error, when installing mkepub via pip, the setup.py script fails when building a wheel:

error log

$ python3 -m pip install mkepub
Collecting mkepub
  Using cached mkepub-1.2.tar.gz (5.8 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: jinja2 in ./venv/lib/python3.9/site-packages (from mkepub) (3.1.2)
Requirement already satisfied: MarkupSafe>=2.0 in ./venv/lib/python3.9/site-packages (from jinja2->mkepub) (2.1.3)
Building wheels for collected packages: mkepub
  Building wheel for mkepub (setup.py) ... error
  error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/mkepub
copying mkepub/mkepub.py -> build/lib/mkepub
copying mkepub/init.py -> build/lib/mkepub
creating build/lib/mkepub/templates
copying mkepub/templates/container.xml -> build/lib/mkepub/templates
copying mkepub/templates/page.xhtml -> build/lib/mkepub/templates
copying mkepub/templates/toc.xhtml -> build/lib/mkepub/templates
copying mkepub/templates/cover.xhtml -> build/lib/mkepub/templates
copying mkepub/templates/toc.ncx -> build/lib/mkepub/templates
copying mkepub/templates/package.opf -> build/lib/mkepub/templates
installing to build/bdist.macosx-10.9-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/wheel
creating build/bdist.macosx-10.9-x86_64/wheel/mkepub
copying build/lib/mkepub/mkepub.py -> build/bdist.macosx-10.9-x86_64/wheel/mkepub
copying build/lib/mkepub/init.py -> build/bdist.macosx-10.9-x86_64/wheel/mkepub
creating build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
copying build/lib/mkepub/templates/container.xml -> build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
copying build/lib/mkepub/templates/page.xhtml -> build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
copying build/lib/mkepub/templates/toc.xhtml -> build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
copying build/lib/mkepub/templates/cover.xhtml -> build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
copying build/lib/mkepub/templates/toc.ncx -> build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
copying build/lib/mkepub/templates/package.opf -> build/bdist.macosx-10.9-x86_64/wheel/mkepub/templates
running install_egg_info
running egg_info
writing mkepub.egg-info/PKG-INFO
writing dependency_links to mkepub.egg-info/dependency_links.txt
writing requirements to mkepub.egg-info/requires.txt
writing top-level names to mkepub.egg-info/top_level.txt
warning: Failed to find the configured license file 'LICENSE'
reading manifest file 'mkepub.egg-info/SOURCES.txt'
writing manifest file 'mkepub.egg-info/SOURCES.txt'
Copying mkepub.egg-info to build/bdist.macosx-10.9-x86_64/wheel/mkepub-1.2-py3.9.egg-info
running install_scripts
error: [Errno 2] No such file or directory: 'LICENSE'
[end of output]

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

The LICENSE file which gets referenced in setup.cfg is not included in the source distribution.

This happens for me when installing mkepub with:

  • pip 23.2
  • Python 3.9
  • macOS 12.6.3

As a proposed workaround, I'll submit a PR with a MANIFEST.in file added.

Note that a pip install works when the GitHub URL is referenced directly, i.e., not building through the latest PyPi release:

python3 -m pip uninstall git+https://github.com/anqxyr/mkepub
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