adamverse: add --no-deps to pip install commands
In various roles I maintain I use `python3 -m pip install` to directly install a Python project (usually a fedora-messaging consumer), to avoid the pointless bureaucracy of packaging them. The roles install all the deps of these projects as packages first, so pip doesn't have to install any deps, it only installs the project itself. Well...that's the idea. It's possible for this to go wrong (say I forget to update the roles when adding a dep to the project), and in that case I think we'd rather have things blow up (so I know something's wrong) than have pip silently install some random upstream wheel system-wide to make it work. The intent is that all the deps still come from proper Fedora packages, only these projects themselves get installed directly. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
15dbcbb7ac
commit
1325a7ab15
4 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@
|
|||
check_mode: no
|
||||
|
||||
- name: Install check-compose
|
||||
command: "python3 -m pip install /root/check-compose"
|
||||
command: "python3 -m pip install --no-deps /root/check-compose"
|
||||
when: "gitcc is changed or instcc.rc != 0"
|
||||
notify:
|
||||
- restart check-compose
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
check_mode: no
|
||||
|
||||
- name: Install fedora_nightlies
|
||||
command: "python3 -m pip install /root/fedora_nightlies"
|
||||
command: "python3 -m pip install --no-deps /root/fedora_nightlies"
|
||||
when: "gitfn is changed or instfn.rc != 0"
|
||||
notify:
|
||||
- restart fedora_nightlies
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
check_mode: no
|
||||
|
||||
- name: Install fedora_openqa
|
||||
command: "python3 -m pip install /root/fedora_openqa"
|
||||
command: "python3 -m pip install --no-deps /root/fedora_openqa"
|
||||
when: "gittools is changed or insttools.rc != 0"
|
||||
notify:
|
||||
- restart openqa consumers
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
check_mode: no
|
||||
|
||||
- name: Install relvalconsumer
|
||||
command: "python3 -m pip install /root/relvalconsumer"
|
||||
command: "python3 -m pip install --no-deps /root/relvalconsumer"
|
||||
when: "gitrvc is changed or instrvc.rc != 0"
|
||||
notify:
|
||||
- restart relvalconsumer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue