Package Details: python-prompt_toolkit1 1.0.15-2

Git Clone URL: https://aur.archlinux.org/python-prompt_toolkit1.git (read-only)
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: 2
Popularity: 0.014442
First Submitted: 2018-11-19 22:14
Last Updated: 2018-11-20 15:03

Pinned Comments

algebro commented on 2018-11-20 15:20

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

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.