Compare commits

..

4 Commits

Author SHA1 Message Date
d31bbb737a Make it so pip install --user still works
Debian has enabled `EXTERNALLY-MANAGED` from PEP 668 which breaks `pip
install --user`. I think this is a terrible decision, understandable to
want to avoid modifications in `/usr/lib/python*/site-packages` but to
have that stop be installing packages in my home directory is a big
mistake in terms of usability. In any case this patch sets the override
flag in `pip.conf` even though I'm never actually touching the real site
packages.
2023-03-04 11:23:50 +00:00
8d560a3598 Fix ipython config paths 2022-05-04 14:10:25 +01:00
ba5a5268b6 Use package name lists 2021-12-15 00:32:45 +00:00
736e06dcaf Create directories 2021-12-15 00:04:33 +00:00
2 changed files with 20 additions and 10 deletions

View File

@@ -1,2 +1,5 @@
[global]
break-system-packages = true
[list]
format=columns

View File

@@ -1,18 +1,25 @@
---
- name: python install pip packages
pip:
name: '{{item}}'
name:
- flake8
- grip
- ipdb
- ipython
- isort
- pylint
- python-gist
- yapf
state: latest
extra_args: --user
- name: python create directories
file:
state: directory
dest: '{{item}}'
with_items:
- flake8
- grip
- ipdb
- ipython
- isort
- pylint
- python-gist
- yapf
- ~/.config/ipython/profile_default
- ~/.config/pip
- name: python create symbolic links
file:
@@ -25,6 +32,6 @@
- src: ~/.config/python/pylintrc
dest: ~/.pylintrc
- src: ~/.config/python/ipython_config.py
dest: ~/.ipython/profile_default/ipython_config.py
dest: ~/.config/ipython/profile_default/ipython_config.py
- src: ~/.config/python/pip.conf
dest: ~/.config/pip/pip.conf