Re: Prevent pip from breaking the system by adopting PEP 668

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux