On Sun, 28 Mar 2021 18:13:26 +0100 Julian Smith <ju...@op59.net> wrote:
> On Sat, 27 Mar 2021 00:05:35 +0000 > Julian Smith <ju...@op59.net> wrote: > > I eventually managed to local installs from sdist to work with pip-18.1 > by modifying my pyproject.toml, changing: > > [build-system] > requires = [] > > to: > [build-system] > requires = ["wheel"] > > [Using "setup" also works.] > > This seems to make a difference even though my setup.py and pipcl.py > files don't use setuptools. > > I also had to make my setup.py script handle the 'dist_info' command. > setuptools.setup()'s help text doesn't mention this so it's not > immediately clear what it is supposed to do, but it turns out to be > similar to egg_info except for putting files in > <egg_base>/<name>.dist-info/ instead of <egg_base>/.egg-info/. > > > Unfortunately although i can now install from a local sdist with old > and new pip, the 'requires = ["wheel"]' seems to break things when > testing on test.pypi.org - i get: > > requests.exceptions.HTTPError: 404 Client Error: Not Found for url: > https://test.pypi.org/simple/wheel/ > > pip-18.1 then gives up. pip-21.0.1 carries on, running setup.py > directly to do the install of my package. > > I guess i could try uploading to pypi.org, and see whether it can give > the dummy "wheel" package, but i was hoping to be able to get things > working reliably on test.pypi.org first. In the end i decided not to try to support installation with old pip-18.1. So i've now uploaded the project to pypi.org. It's a set of Python bindings for the PDF library MuPDF, and can be installed with: pip install mupdf The install takes a few minutes to compile original source and run SWIG etc. More information is at: https://twiki.ghostscript.com/do/view/Main/MuPDFWrap If anyone is interested, here's the MuPDF commit that adds support for Python packaging, adding a Python module pipcl.py that helps to provide generic PEP-517 support and basic setup.py command-line usage: https://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=153c67ddf5 Thanks, - Julian -- http://op59.net -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/GQZQNXMXIY4WTSDTHRSIBBFKEACVFTQH/