mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
use --system-site-packages and install package to omit building 'netifaces' wheel
This commit is contained in:
parent
1b48a2666a
commit
a61e1b0590
1 changed files with 11 additions and 19 deletions
|
@ -1,19 +1,19 @@
|
||||||
- name: "Install packages: imagemagick, python3-venv"
|
- name: "Install packages: imagemagick, python3-venv, python3-netifaces"
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- imagemagick
|
- imagemagick
|
||||||
- python3-venv
|
- python3-venv
|
||||||
|
- python3-netifaces
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
# https://github.com/iiab/iiab/pull/3496#issuecomment-1475094542
|
# https://github.com/iiab/iiab/pull/3496#issuecomment-1475094542
|
||||||
- name: "Install packages: python3-dev, gcc to compile 'netifaces'"
|
#- name: "Install packages: python3-dev, gcc to compile 'netifaces'"
|
||||||
package:
|
# package:
|
||||||
name:
|
# name:
|
||||||
- python3-dev # header files
|
# - python3-dev # header files
|
||||||
- gcc # compiler
|
# - gcc # compiler
|
||||||
state: present
|
# state: present
|
||||||
when: python_version is version('3.10', '>=')
|
# when: python_version is version('3.10', '>=')
|
||||||
|
|
||||||
- name: Allow ImageMagick to read PDFs, per /etc/ImageMagick-6/policy.xml, to create book cover thumbnails
|
- name: Allow ImageMagick to read PDFs, per /etc/ImageMagick-6/policy.xml, to create book cover thumbnails
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ImageMagick-6/policy.xml
|
path: /etc/ImageMagick-6/policy.xml
|
||||||
|
@ -56,7 +56,8 @@
|
||||||
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
||||||
virtualenv: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
|
virtualenv: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
|
||||||
virtualenv_site_packages: no
|
virtualenv_site_packages: no
|
||||||
virtualenv_command: python3 -m venv {{ calibreweb_venv_path }}
|
virtualenv_command: python3 -m venv {{ calibreweb_venv_path }} --system-site-packages
|
||||||
|
|
||||||
# VIRTUALENV EXAMPLE COMMANDS:
|
# VIRTUALENV EXAMPLE COMMANDS:
|
||||||
# cd /usr/local/calibre-web-py3
|
# cd /usr/local/calibre-web-py3
|
||||||
# source bin/activate
|
# source bin/activate
|
||||||
|
@ -102,15 +103,6 @@
|
||||||
backup: yes
|
backup: yes
|
||||||
when: not appdb.stat.exists
|
when: not appdb.stat.exists
|
||||||
|
|
||||||
# https://github.com/iiab/iiab/pull/3496#issuecomment-1475094542
|
|
||||||
#- name: "Uninstall packages: python3-dev, gcc used to compile 'netifaces'"
|
|
||||||
# package:
|
|
||||||
# name:
|
|
||||||
# - python3-dev # header files
|
|
||||||
# - gcc # compiler
|
|
||||||
# state: absent
|
|
||||||
# when: python_version is version('3.10', '>=')
|
|
||||||
|
|
||||||
|
|
||||||
# RECORD Calibre-Web AS INSTALLED
|
# RECORD Calibre-Web AS INSTALLED
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue