pdt to do posts. The documentation for each function is within the
pdt.sh file. After an update via git pull, run pdt-stup again.
+If you've upgraded your OS, and have a new version of python, you may need to
+rm -rf ~/.local ~/src/tweepy/venv ~/src/toot/venv, and run pdt-setup.
+
Patches welcome, email them to iank@fsf.org . If you aren't sure how
to send a patch, see https://git-send-email.io/
rm -rf ~/src/toot
mkdir -p ~/src/toot
- # subshell for cd
+ # subshell for cd & source without deactivate
(
cd ~/src/toot
# on t11, got myself into a situation where when doing pip install virtualenv,
# generally only meant to be called internally from pdt-setup
pdt-twitter-setup() {
+ if [[ ! -e ~/src/tweepy ]]; then
+ mkdir -p ~/src
+ cd ~/src
+ git clone https://github.com/tweepy/tweepy.git
+ cd tweepy
+ # just a commit we happened to use and is working
+ git checkout f32d12dbddbd877470446657812a10a04292d0c9
+ fi
+ # subshell so it undoes the source command.
(
cd ~/src/tweepy
python3 -m virtualenv -p python3 venv