From 25a0a638d9c0abbd726dbaab42a4a594fccea631 Mon Sep 17 00:00:00 2001 From: Michael McMahon Date: Thu, 20 Feb 2025 15:24:10 -0500 Subject: [PATCH] Update README on how to install virtualenv --- README.md | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5982d6c..7ecca0b 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,21 @@ Dependencies include: * fonts-roboto * make -## Installing virtualenv on trisquel 10 and 11 using deb files +## Installing virtualenv on Trisquel via get-pip -Note that although virtualenv and pip are free software, they are not in the Trisquel repositories because these don't include third-party package repositories. You can install python3-pip and python3-virtualenv from packages.ubuntu.com using the matching upstream version of Ubuntu for the Trisquel release you use (For Trisquel 10 nabia use "Focal" packages, For Trisquel 11 aramo use "Jammy" packages. +Note that although virtualenv and pip are free software, python3-pip and python3-virtualenv are not in the Trisquel repositories. You can install python3-pip and python3-virtualenv from packages.ubuntu.com using the matching upstream version of Ubuntu or by using the get-pip.py script. We aware that nonfree software can be installed using pip. + +Up-to-date information about this can be internally found at + + curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" + sudo apt update && sudo apt install -y python3-distutils + sudo python3 get-pip.py + sudo pip3 install virtualenv + sudo ln -s /usr/local/bin/virtualenv /usr/bin/virtualenv + +This script install the other packages. + + sudo apt update && sudo apt install -y python3 fonts-roboto make ## Installation using virtualenv @@ -18,16 +30,16 @@ Note that although virtualenv and pip are free software, they are not in the Tri virtualenv financial-reports cd financial-reports . bin/activate - + # Install pelican and its dependencies pip install pelican[markdown] pip install pelican-liquid-tags pip install pelican-image-process pip install matplotlib - + # Copy the custom liquid_tags plugins made for the site cp plugins/* ./lib/python*/site-packages/pelican/plugins/liquid_tags - + # Optionally, install font roboto. This can also be done with "sudo apt install fonts-roboto" pip install font-roboto mkdir ~/.fonts ; cp ./lib/python*/site-packages/font_roboto/files/*.ttf ~/.fonts @@ -54,20 +66,20 @@ With the virtualenv activated, the "make" command would show the basic pelican u /theme/ Theme based on pelican-b-side - + Copyright (c) 2020 jhauh Copyright (c) 2022 Free Software Foundation, Inc. - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -88,11 +100,11 @@ With the virtualenv activated, the "make" command would show the basic pelican u it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . -- 2.25.1