Package Details: python2-polib 1.1.0-3

Git Clone URL: https://aur.archlinux.org/python-polib.git (read-only, click to copy)
Package Base: python-polib
Description: A library to manipulate gettext files
Upstream URL: https://pypi.python.org/pypi/polib
Licenses: MIT
Submitter: jelly
Maintainer: ragouel
Last Packager: ragouel
Votes: 8
Popularity: 0.37
First Submitted: 2019-02-16 21:15
Last Updated: 2020-07-08 01:30

Latest Comments

ragouel commented on 2020-09-16 18:15

Scratch my last comment. Yes, there are packages depending on it.

a.kudelin commented on 2020-09-16 08:41

Is there any need for python2 as a dependency?

yochananmarqos commented on 2020-07-07 03:04

@Lone_Wolf: Right, but it makes no sense to use a global depends() when each package has it's own. At best, it's redundant. Again, this package is missing makedepends() which should be:

makedepends('python-setuptools' 'python2-setuptools')

See the setup.py.

Lone_Wolf commented on 2020-07-06 15:31

I'm not, but I may have explained it badly.

This is a split package and has specific behaviour.

All options and directives for split packages default to the global values given in the PKGBUILD. 
Nevertheless, the following ones can be overridden within each split package’s packaging function: #pkgdesc, #arch, #url, #license, #groups, #depends, #optdepends, #provides, #conflicts, #replaces, #backup, #options, #install, and #changelog. 

full text at https://wiki.archlinux.org/index.php/PKGBUILD#pkgbase

Durning the build with makepkg both python & python2 need to be present, but once build is finished they are no longer needed.

When user installs python-polib only python3 is needed, for python2-polib it's only python2 .

yochananmarqos commented on 2020-07-06 15:04

@Lone_Wolf: It sounds like you're talking about makedepends() which is missing.

Lone_Wolf commented on 2020-07-06 07:47

They don't , the depends= in the body of the PKGBUILD are used by makepkg during building, the ones in package_foo() are used at install time by pacman .

Are you using the -i / --install flag of makepkg ?

If so, never use that for split packages as it installs everything (python3 AND python2 versions in this case).

$ pacman -Qi python-polib 
Name            : python-polib
Version         : 1.1.0-2
Description     : A library to manipulate gettext files
Architecture    : any
URL             : https://pypi.python.org/pypi/polib
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : python
Optional Deps   : None
Required By     : singularity-git
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 172.08 KiB
Packager        : Unknown Packager
Build Date      : di 02 jun 2020 17:31:17 CEST
Install Date    : za 06 jun 2020 01:05:10 CEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : SHA-256 Sum
$

yochananmarqos commented on 2020-07-06 04:50

Please remove the first depends() array as each package provides their own. Otherwise both packages depend on python and python2.