use builtin venv

This commit is contained in:
Florian Kisser
2018-10-19 19:48:11 +02:00
parent b571aefa3b
commit ce4a75c539
2 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ Thanks to *felixonmars* for creating and maintaining this package.
### Debian/Ubuntu ### Debian/Ubuntu
``` ```
sudo apt install git virtualenv build-essential python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev sudo apt install git build-essential python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev
git clone https://github.com/erpalma/lenovo-throttling-fix.git git clone https://github.com/erpalma/lenovo-throttling-fix.git
sudo ./lenovo-throttling-fix/install.sh sudo ./lenovo-throttling-fix/install.sh
``` ```
@@ -71,7 +71,7 @@ sudo systemctl mask thermald.service
### Fedora ### Fedora
``` ```
dnf install python3-cairo-devel cairo-gobject-devel gobject-introspection-devel dbus-glib-devel python-virtualenv python3-devel python3-virtualenv dnf install python3-cairo-devel cairo-gobject-devel gobject-introspection-devel dbus-glib-devel python3-devel
git clone https://github.com/erpalma/lenovo-throttling-fix.git git clone https://github.com/erpalma/lenovo-throttling-fix.git
sudo ./lenovo-throttling-fix/install.sh sudo ./lenovo-throttling-fix/install.sh
``` ```
@@ -80,7 +80,7 @@ Feedback about Fedora installation is welcome.
### openSUSE ### openSUSE
User *brycecordill* reported that the following dependecies are required for installing in openSUSE. I guess that python2 dependecies can be safely dropped. I would really appreciate any feedback from openSUSE users. User *brycecordill* reported that the following dependecies are required for installing in openSUSE. I guess that python2 dependecies can be safely dropped. I would really appreciate any feedback from openSUSE users.
``` ```
zypper install gcc python2-pip python3-devel python-devel dbus-1-glib-devel python3-cairo-devel cairo-devel python2-cairo-devel python3-gobject-cairo gobject-introspection-devel python-virtualenv zypper install gcc python2-pip python3-devel python-devel dbus-1-glib-devel python3-cairo-devel cairo-devel python2-cairo-devel python3-gobject-cairo gobject-introspection-devel
git clone https://github.com/erpalma/lenovo-throttling-fix.git git clone https://github.com/erpalma/lenovo-throttling-fix.git
sudo ./lenovo-throttling-fix/install.sh sudo ./lenovo-throttling-fix/install.sh
``` ```

View File

@@ -22,7 +22,7 @@ cp systemd/lenovo_fix.service /etc/systemd/system
echo "Building virtualenv..." echo "Building virtualenv..."
cp requirements.txt lenovo_fix.py mmio.py "$INSTALL_DIR" cp requirements.txt lenovo_fix.py mmio.py "$INSTALL_DIR"
cd "$INSTALL_DIR" cd "$INSTALL_DIR"
virtualenv -p /usr/bin/python3 venv /usr/bin/python3 -m venv venv
. venv/bin/activate . venv/bin/activate
pip install -r requirements.txt pip install -r requirements.txt