Skip to content
Snippets Groups Projects
Commit f1fb94db authored by Daniel Müller's avatar Daniel Müller :speech_balloon:
Browse files

Optimize apt usage

- Moved `python3-pip` and `python3-venv` into local.yml as base dependencies
- Update apt cache while installing base dependencies in local.yml
- Remove redundant installs and cache updates from roles
parent 0c31b394
No related branches found
No related tags found
No related merge requests found
......@@ -18,14 +18,16 @@
# update_cache: true
# force_apt_get: true
# - name: Install pip3
# become: true
# apt:
# update_cache: true
# name:
# - python3-pip
# - libffi-dev # This is needed for jupyter on aarch64 to compile its C backend
# state: present
- name: Update apt cache & install base requirements
become: true
apt:
update_cache: true
state: present
name:
- python3-pip
- python3-venv
# - libffi-dev # This is needed for jupyter on aarch64 to compile its C backend
roles:
- jupyter-lab
......
......@@ -8,17 +8,6 @@
owner: "{{ target_user }}"
group: "{{ target_user }}"
# This should be optimized so that only one check / install is needed
# Still we should make sure that pip3 is actually installed before trying to use it
- name: Install dependecies
become: true
apt:
name:
- python3-pip
- python3-venv
state: present
update_cache: true
- name: Install jupyter-lab
pip:
virtualenv_command: /usr/bin/python3 -m venv
......
---
# roles/ml-python-packages
# This should be optimized so that only one check / install for pip3 is needed
# Still we should make sure that pip3 is actually installed before trying to use it
- name: Install dependecies
become: true
apt:
name:
- python3-pip
- libatlas-base-dev
state: present
update_cache: true
- name: Copy requirements.txt to remote fs
copy:
......@@ -22,13 +18,4 @@
virtualenv_command: /usr/bin/python3 -m venv
requirements: /tmp/ml-requirements.txt
virtualenv: "/home/{{ target_user }}/.ml-venv"
# name:
# - numpy
# - sklearn
# - matplotlib
# - pandas
# - Pillow
# - torch
# - torchvision
# - fastai
# state: present
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment