pypi2pkgbuild icon indicating copy to clipboard operation
pypi2pkgbuild copied to clipboard

How to build a package with an option?

Open fengwang opened this issue 2 years ago • 1 comments

I would like to build dvc with option azure. Using pip3, I can install it by executing pip3 install 'dvc[azure]', but using pypi2pkgbuild: pypi2pkgbuild.py -v 'dvc[azure]', I got such error message

$ pypi2pkgbuild.py -v  'dvc[azure]'         
DEBUG:pypi2pkgbuild:This is pypi2pkgbuild 0.3.post2+gdbdb652.
DEBUG:pypi2pkgbuild:Running subprocess:
pkgfile pkgfile >/dev/null
ERROR:pypi2pkgbuild:Package dvc[azure] not found.

fengwang avatar Feb 17 '22 15:02 fengwang

This was not supported due to https://github.com/pypa/pip/issues/3797 (and the limitation (or rather a similar one) is noted in https://github.com/anntzer/pypi2pkgbuild/blob/main/TODO.rst#issues); I guess I could consider a PR that fixes that.

anntzer avatar Feb 17 '22 17:02 anntzer