Package Details: python-prompt_toolkit1 1.0.18-1

Git Clone URL: https://aur.archlinux.org/python-prompt_toolkit1.git (read-only, click to copy)
Package Base: python-prompt_toolkit1
Description: Library for building powerful interactive command lines in Python (1.x branch). Python 3 version from PyPi.
Upstream URL: https://github.com/jonathanslenders/python-prompt-toolkit
Licenses: BSD
Submitter: algebro
Maintainer: algebro
Last Packager: algebro
Votes: 5
Popularity: 0.000000
First Submitted: 2018-11-19 22:14 (UTC)
Last Updated: 2020-06-08 14:34 (UTC)

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:

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.

Latest 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:

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.