BlackArch / blackarch

An ArchLinux based distribution for penetration testers and security researchers.
https://www.blackarch.org
Other
2.73k stars 551 forks source link

Dependencies on PEP517 Python packages #4139

Open D3vil0p3r opened 1 month ago

D3vil0p3r commented 1 month ago

Question

On PKGBUILD with PEP517 template like python-thinc, since in package() the pip install command is run, I guess it will install all the dependencies specified in pyproject.toml file. At this point, is there a sense to still specify dependencies in depends variable of PKGBUILD if they are already installed by pip install?

micwoj92 commented 1 month ago

--no-deps is specified, which ignores dependencies of package. It would be much cleaner IMO to install packages python-installer instead of PIP.

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}

AUR package does it this way. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-thinc

noraj commented 1 month ago

ref. https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)