problems with get_metadata_overrides()

Phil Thompson phil at riverbankcomputing.com
Tue Jun 2 06:36:30 BST 2020


On 02/06/2020 05:25, Phil Thompson wrote:
> On 01/06/2020 22:50, Steve Borho wrote:
>> Hello,
>> 
>> First, thanks for the new get_metadata_overrides() in sip-5.3, this is
>> quite helpful.
>> 
>> Unfortunately, when I use the function the resultant wheel files are
>> invalid.  It looks like it might be a problem with sip-distinfo.
>> 
>> % sip-wheel —verbose
>> <SNIP>
>> /home/sborho/uhenv/bin/sip-distinfo --inventory
>> /tmp/tmp8_5xo7c1/inventory.txt --project-root
>> /home/sborho/repos/foo/python --prefix "" --generator sip-wheel
>> --wheel-tag cp36-cp36m-manylinux2014_x86_64 <SNIP> --requires-dist
>> "PyQt5-sip (>=12.8, <13)" --requires-dist "numpy" --requires-dist
>> "six" --requires-dist "argh" --requires-dist "tftpy >= 0.6.2"
>> --requires-dist "pyserial >= 3.3" --metadata version=0.7.5.dev13
>> /tmp/tmp8_5xo7c1/wheel/foo-0.7.5.dev13.dist-info
>> 
>> % pip install foo-0.7.5.dev13-cp36-cp36m-manylinux2014_x86_64.whl
>> ERROR: foo has an invalid wheel, .dist-info directory not found
>> 
>> If I comment out get_metadata_overrides() in project.py; the resulting
>> wheel is ok.  I’ve verified this behavior on Mac and Linux.
>> 
>> I am using these packages:
>> 
>> PyQt-builder==1.4.0
>> PyQt5==5.15.0
>> PyQt5-sip==12.8.0
>> PyQtDataVisualization==5.15.0
>> QScintilla==2.11.4
>> sip==5.3.0
>> 
>> PyQt5-5.15.0 was sip-installed from the source tar-ball.
> 
> I can't reproduce the problem by adding this simple project.py...
> 
> from sipbuild import Project
> 
> class FibProject(Project):
> 
>     def get_metadata_overrides(self):
>         return dict(version='0.7.5.dev13')
> 
> ...to the fib example.

Sorry, that test was too trivial.

Now fixed in the repo.

Phil


More information about the PyQt mailing list