Skip to content

Instantly share code, notes, and snippets.

@dmtucker
Created February 13, 2019 08:11
Show Gist options
  • Save dmtucker/3c9d5e2c389409aa807f95621bfdd242 to your computer and use it in GitHub Desktop.
Save dmtucker/3c9d5e2c389409aa807f95621bfdd242 to your computer and use it in GitHub Desktop.
  • setuptools builds distributions from source code.
  • pip (un)installs distributions (optionally, from PyPI).
    • twine publishes distributions to PyPI.
  • pytest tests installed distributions.
@tucked
Copy link

tucked commented Mar 2, 2020

no global pip, instead (these both dont work)

mkdir -p ~/.local/pipx/venvs
sudo apt install python3-venv
python3 -m venv ~/.local/pipx/venvs/pipx
~/.local/pipx/venvs/pipx/bin/pip install pipx
ln -snf ~/.local/pipx/venvs/pipx/bin/pipx ~/.local/bin/pipx
~/.local/bin/pipx ensurepath
pipx upgrade pipx

use global python for pipx not pyenv versions (in case you decide to remove them)

  • pipx first, then pyenv

pipx install pipenv tox

@tucked
Copy link

tucked commented Mar 2, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment