Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies on PEP517 Python packages #4139

Open
D3vil0p3r opened this issue May 12, 2024 · 2 comments
Open

Dependencies on PEP517 Python packages #4139

D3vil0p3r opened this issue May 12, 2024 · 2 comments

Comments

@D3vil0p3r
Copy link
Contributor

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
Copy link

--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
Copy link
Contributor

noraj commented May 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants