You are not logged in.

#1 2022-07-03 07:37:09

ynikitenko
Member
From: Aachen, Germany
Registered: 2020-11-15
Posts: 45
Website

[SOLVED] Python version in PKGBUILD

Dear all,

I created a package that depends on Python (https://aur.archlinux.org/packages/yarsync).
I only tested it with Python >= 3.6, Python <= 3.10 (as it is written in my setup.py), and also PyPy3; however, on Arch Wiki they usually write simply "python" in examples on depends or Python packaging.

On the project page it is displayed as "python (python38, python37, python3.7, nogil-python, python39, python36, python311, python32)", which is not what I want.

I explicitly restricted Python version in PKGBUILD, and it works.

However, when I searched AUR, I could only find packages that depend on Python (including 3.2), like https://aur.archlinux.org/packages/rodder-git or https://aur.archlinux.org/packages/fenrir-git; neither was it noted during my package review.

So is it safe to use a form "depends=('python>=3.6')", or are there other considerations?

Last edited by ynikitenko (2022-07-03 13:48:01)

Offline

#2 2022-07-03 10:13:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,637

Re: [SOLVED] Python version in PKGBUILD

Arch assumes you're on the latest version. Just put 'python' and be done with it.

Online

#3 2022-07-03 13:47:15

ynikitenko
Member
From: Aachen, Germany
Registered: 2020-11-15
Posts: 45
Website

Re: [SOLVED] Python version in PKGBUILD

For me this contradicts to version control, but if this is a convention for Arch, this is fine (this is how it is in my PKGBUILD at the moment).
Thanks again for your reply!

Offline

Board footer

Powered by FluxBB