On 18-05-2023 13:48, Genes Lists wrote:
On 5/18/23 06:26, Lone_Wolf wrote:
On 17-05-2023 18:31, Genes Lists wrote:
have several packages where in the install section of PKGBUILD it does something like:
pipopts="--isolated --ignore-installed --no-deps" pip $pipopts install --root=$pkgdir dist/*.whl
Those packages are NOT following the python package guidelines in the wiki and should be adjusted.
https://wiki.archlinux.org/title/Python_package_guidelines
I have only glimpsed at PEP 668, but it looks to be targeted at users , not packagers .
Thanks LW - it is not quite so clear, maybe it's just me.
The python 3.11.3 docs recommend using pip to install python modules [1]
"pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers." ...
PEP 517 seems to confirm this [2] by showing pip as the frontend [3] as well as in the examples.
So do the current standards/recommendations suggest 'pip install' or python -m installer?
Best I could tell, pip is the recommended way forward. I'm very interested what other folks, with deeper knowledge / better understanding than mine, believe is the best approach.
thanks
gene
[1] https://docs.python.org/3/installing/index.html [2] https://peps.python.org/pep-0517 [3] https://peps.python.org/pep-0517/#appendix-a-comparison-to-pep-516
For archlinux packaging the arch package guidelines on the wiki are the goto place for recommendations. Those pages are not static and kept uptodate . Important changes are discussed before being made. Check https://wiki.archlinux.org/title/Talk:Python_package_guidelines , chapter 3 and especially 6 relate directly to this thread. LW P.S. Keep in mind 2 things : - python is used on OSes without package managers, user doc needs to work for them also - Archlinux deals with python in a different way then Redhat/Fedora , Debian / Ubuntu and other distros. Several PEPs were created/triggered to deal with those differences. Lone_Wolf