[Slackbuilds-users] pyPdf SlackBuild or can't upgrade sofastats

Duncan Roe duncan_roe at optusnet.com.au
Sun Aug 20 03:29:38 UTC 2017


On Sat, Aug 19, 2017 at 06:06:47PM +0200, 414N wrote:

> I'm working on an updated sofastats SlackBuild but I stumbled upon a
> dependency issue...
> It seems like the sofastats package depends since some time on the `pyPdf`
> python library for managing PDF exports (see the official documentation at
> http://www.sofastatistics.com/wiki/doku.php?id=help:linux_installation#packages_required_dependencies,
> although they only report distro-specific package names...). Problem is,
> that the pyPdf package on SBo is not the original library required for the
> build, but instead is a ~2011 fork based on that library that has since gone
> separate ways and was renamed `PyPDF2`. This is also reflected on the module
> name, as it is installed as PyPDF2 inside
> /usr/lib64/python2.7/site-packages/PyPDF2/.
> The full story of the forking is available on the official site of PyPDF2 at
> https://mstamy2.github.io/PyPDF2/, while the original library is still
> available at http://pybrary.net/pyPdf/.
> What I'd like to propose is:
>
> - to rename the current pyPdf package to the more proper `PyPDF2` name
>
> - to submit (I've already created a SlackBuild) the original unmaintained
> library as `pyPdf`, so the dependency can be set inside the updated
> sofastats.info
> --
> Alan Alberghini

Hi Alan,

Please try to avoid sending HTML-only messages to the list in future.

pyPdf is indexed by PyPI - the Python Package Index
(https://pypi.python.org/pypi),  so pip2tgz will build it. The package ends up
as pyPdf-1.13-x86_64-1_pip2_SBo.tgz. (PyPDF2 is also listed on PyPI BTW).

Unfortunately you can't put a pip2tgz-built package as a dependency in
sofastats.info. You would have to mention it in the README as being required.
That would enable you to get the main SB out the door.

I certainly agree that the existing pyPdf SB should be renamed,

Cheers ... Duncan.


More information about the SlackBuilds-users mailing list