You are not logged in.

#1 2016-10-28 10:25:52

AlexIL
Member
From: Israel
Registered: 2016-01-02
Posts: 45
Website

Python packages from stdlib

One of the python packages which I'm maintaining has the dependency on python-argparse which is actually from the stdlib, see this link.
I was wondering if it really should be added as the depndencies? Shouldn't it be installed along with the python pacakge?

Offline

#2 2016-10-28 13:31:18

a821
Member
Registered: 2012-10-31
Posts: 381

Re: Python packages from stdlib

but the module is included in the python packages. see

$ python2
Python 2.7.12 (default, Jun 28 2016, 08:31:05)
[GCC 6.1.1 20160602] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import argparse
>>>
$ python
Python 3.5.2 (default, Jun 28 2016, 08:46:01)
[GCC 6.1.1 20160602] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import argparse
>>>
$ pacman -Qs argparse
$

and I don't have python-argparse installed. maybe I misunderstood something...

Offline

#3 2016-10-28 13:43:06

AlexIL
Member
From: Israel
Registered: 2016-01-02
Posts: 45
Website

Re: Python packages from stdlib

Well, that's exactly my point.
Should I include it in depends array or not?
And why the package exists anyway?

Offline

#4 2016-10-28 14:21:34

Daerandin
Member
From: Norway
Registered: 2013-05-07
Posts: 266
Website

Re: Python packages from stdlib

The package you linked to is not an official package, but an AUR package for implementing argparse in older versions of Python. If you had checked the upstream URL for the package you linked to, then you would have seen that it is specifically for Python versions less than 2.7 and 3.2. So unless your package is only meant to work with older versions of Python, it does not depend on that package and you should not include it in your depends array.

Offline

#5 2016-10-28 18:42:42

a821
Member
Registered: 2012-10-31
Posts: 381

Re: Python packages from stdlib

AlexIL wrote:

Well, that's exactly my point.
Should I include it in depends array or not?
And why the package exists anyway?

Sorry I misunderstood, I thought you thought it wasn't included in the python package. As Daerandin pointed out, just remove it from the dependencies array.

Offline

#6 2016-10-28 23:16:45

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 675

Re: Python packages from stdlib

Daerandin wrote:

The package you linked to is not an official package, but an AUR package for implementing argparse in older versions of Python.

I don't understand why it was added to the AUR though? Argparse was added to python 3.2 and 2.7 in Feb 2011 yet that AUR package was created in Aug 2014. I don't see how any Arch user would have ever needed it?

Last edited by bulletmark (2016-10-28 23:17:00)

Offline

#7 2016-10-29 12:43:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,970

Re: Python packages from stdlib

Upstream choices .

example : dyndnsc requires argparse,if you check dyndnsc code on github they suppport running it on python 2.6 .
Maybe building dyndnsc fails when python-argparse / python2-argparse are not present ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB