Skip to content

sobolevn/dotbot-pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotbot-pip

Install pip packages with dotbot. Also supports pipsi and pipx.

Prerequirements

This plugin requires dotbot to be installed.

How does it work

This plugin installs specified requirements file with the given binary.

Installation

  1. Run:
git submodule add https://github.com/sobolevn/dotbot-pip.git
  1. Modify your ./install with new plugin directory:
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir dotbot-pip -c "${CONFIG}" "${@}"
  1. Add required options to your install.conf.yaml:
- pip:
    file: requirements.txt
    binary: /usr/local/bin/pip3
    user: true    # Like --user
    stdout: false # Print the execution stdout
    stderr: true  # Print the execution stderr

# Also supports pipsi and pipx, make sure they appear after `pip`!

- pipsi:
    file: requirements-pipsi.txt
    stdout: false # Print the execution stdout
    stderr: true  # Print the execution stderr

- pipx:
    file: requirements-pipx.txt
    stdout: false
    stderr: true

That's it!

License

MIT. See LICENSE for more details.