mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	test calibre-web under python3
This commit is contained in:
		
							parent
							
								
									f126c06e6e
								
							
						
					
					
						commit
						694e2051a2
					
				
					 2 changed files with 7 additions and 7 deletions
				
			
		|  | @ -16,7 +16,7 @@ | |||
| 
 | ||||
| calibreweb_version: 0.6.5    # WAS: master, 0.6.4 | ||||
| 
 | ||||
| calibreweb_venv_path: /usr/local/calibre-web | ||||
| calibreweb_venv_path: /usr/local/calibre-web-py3 | ||||
| calibreweb_exec_path: "{{ calibreweb_venv_path }}/cps.py" | ||||
| 
 | ||||
| # Config files put in: | ||||
|  |  | |||
|  | @ -42,21 +42,21 @@ | |||
| #  ignore_errors: True | ||||
| ## | ||||
| # Implementing this with Ansible command module for now. | ||||
| - name: Download Calibre-Web dependencies (using pip) into python2.7 virtual environment {{ calibreweb_venv_path }} | ||||
| - name: Download Calibre-Web dependencies (using pip) into python3.7 virtual environment {{ calibreweb_venv_path }} | ||||
|   pip: | ||||
|     requirements: "{{ calibreweb_venv_path }}/requirements.txt" | ||||
|     virtualenv: "{{ calibreweb_venv_path }}"    # /usr/local/calibre-web | ||||
|     virtualenv: "{{ calibreweb_venv_path }}"    # /usr/local/calibre-web-py3 | ||||
|     virtualenv_site_packages: no | ||||
|     virtualenv_command: /usr/bin/virtualenv | ||||
|     virtualenv_python: python2.7 | ||||
|     virtualenv_python: python3.7 | ||||
|   when: internet_available | bool | ||||
| 
 | ||||
| # 2020-02-02: IS PYTHON 3 POSSIBLE ABOVE AND BELOW? | ||||
| 
 | ||||
| - name: Symlink {{ calibreweb_venv_path }}/vendor -> {{ calibreweb_venv_path }}/lib/python2.7/site-packages - to keep {{ calibreweb_venv_path }}/cps.py happy | ||||
| - name: Symlink {{ calibreweb_venv_path }}/vendor -> {{ calibreweb_venv_path }}/lib/python2.7/site-packages - to keep {{ calibreweb_venv_path }}/cps.py happy? | ||||
|   file: | ||||
|     src: "{{ calibreweb_venv_path }}/lib/python2.7/site-packages" | ||||
|     path: "{{ calibreweb_venv_path }}/vendor"    # /usr/local/calibre-web | ||||
|     src: "{{ calibreweb_venv_path }}/lib/python3.7/site-packages" | ||||
|     path: "{{ calibreweb_venv_path }}/vendor"    # /usr/local/calibre-web-py3 | ||||
|     state: link | ||||
| 
 | ||||
| - name: Install /etc/systemd/system/calibre-web.service from template | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue