[Dev] python packaging
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.
> 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
> 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...
Size: 818 bytes
Desc: not available
More information about the Dev