systematic issue with PYDISTUTILS_AUTOPLIST

William Grzybowski william88 at gmail.com
Mon Nov 11 15:22:20 UTC 2013


We are aware of the issue.

--record option from setup.py is registering a directory whereas it
should not. It is believed the update from distribute to setuptools
will fix this issue, but it is pending an exp-run ports/183726.

On Mon, Nov 11, 2013 at 1:07 PM, John Marino <freebsd.contact at marino.st> wrote:
> I have discovered at least 3 python ports that use
> PYDISTUTILS_AUTOPLIST, and fail to package due to faulty generated plists.
>
> The ports are:
>   www/py-flexget
>   devel/py-robotframework-ride
>   science/py-pydap/
>
> errors seen during repo creation:
>> pkg-static: /packages/All/py27-robotframework-ride-1.2.2.txz is not a valid package: no manifest found
>> pkg-static: /packages/All/py27-flexget-1.1.148,1.txz is not a valid package: no manifest found
>> pkg-static: /packages/All/py27-pydap-3.1.txz is not a valid package: no manifest found
>
> example of errors seen in the log itself:
>> ===>  Building package for py27-flexget-1.1.148,1
>> pkg-static: fread(): Invalid argument
>> pkg-static: fread(): Invalid argument
>> [1/1] Deleting py27-flexget-1.1.148,1...pkg-static: unlink(/usr/local/lib/python2.7/site-packages/FlexGet-1.1-py2.7.egg-info): Is a directory
>
> cause:
> These are well-known symptoms of having a directory listed in the
> pkg-plist as a file.
>
> I checked .PLIST.flattened and .PLIST.pymodtmp after the build:
> flexget: /usr/local/lib/python2.7/site-packages/FlexGet-1.1-py2.7.egg-info
> pydap:  /usr/local/lib/python2.7/site-packages/Pydap-3.1-py2.7.egg-info
> *-ride:
> /usr/local/lib/python2.7/site-packages/robotframework_ride-1.2.2-py2.7.egg-info
>
> All three ports had plist listing to an *.egg-info directory.
> Whatever is generating that (presumably PYDISTUTILS_AUTOPLIST) is making
> an error that renders the binary packages created by pkgng invalid.
>
> I don't think the ports themselves are faulty though.
>
> John



-- 
William Grzybowski
------------------------------------------
Curitiba/PR - Brasil


More information about the freebsd-python mailing list