[Dev] python packaging

Michał Masłowski mtjm at mtjm.eu
Fri Oct 16 16:09:32 GMT 2015


> the issue is that i found out that `python2 setup.py
> install --root=$pkgdir` doesn't verify dependencies, so the build seems
> ok until you try to use the package and the import fails.

It's ok.

> this is very uncomfortable because i have to test every package to see
> what's missing, instead of the build process doing it for me.

It's what the check() function is for in PKGBUILDs.  Often "setup.py
test" runs tests of the package, while some require running them in a
different way.

> how can i make setup.py fail when a dependency isn't met?

Make the tests fail, or find if easy_install/pip can install with
checking dependencies but not installing them.

> or how should
> i programatically pull a pypi package and every dependency and generate
> correct pkgbuilds from them?

Check how pip does this and generate PKGBUILDs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20151016/e2368c1a/attachment.sig>


More information about the Dev mailing list