Hi everyone,
Apparently the compatibility requirements for prompt_toolkit 1.xx are pretty messy. Basically, any packages that depend on python-prompt_toolkit1
will have to add a prepare() function that modifies the src to change references from prompt_toolkit to prompt_toolkit1. Example:
prepare() {
cd "$srcdir/frida-tools-$pkgver"
find ./ -type f -exec sed -i -e 's/prompt_toolkit/prompt_toolkit1/g' {} \;
find ./ -type f -exec sed -i -e 's/prompt-toolkit/prompt-toolkit1/g' {} \;
}
The second sed is to fix the requirement in setup.py in that particular package. Obviously the best fix here is to get upstream projects to switch to prompt_toolkit 2 but hopefully this package will work as a stopgap until then.
Please ping me if you have any issues/questions.
Pinned Comments
algebro commented on 2018-11-20 15:20 (UTC) (edited on 2018-11-20 15:21 (UTC) by algebro)
Hi everyone,
Apparently the compatibility requirements for prompt_toolkit 1.xx are pretty messy. Basically, any packages that depend on
python-prompt_toolkit1
will have to add a prepare() function that modifies the src to change references from prompt_toolkit to prompt_toolkit1. Example:The second sed is to fix the requirement in setup.py in that particular package. Obviously the best fix here is to get upstream projects to switch to prompt_toolkit 2 but hopefully this package will work as a stopgap until then.
Please ping me if you have any issues/questions.