Browse Source

bin update

84582af
Dirk Alders 2 years ago
parent
commit
8e310de0f9
3 changed files with 9 additions and 7 deletions
  1. 1
    0
      apt-extend-ubuntustudio
  2. 5
    7
      mkvenv
  3. 3
    0
      reposinit

+ 1
- 0
apt-extend-ubuntustudio View File

25
 
25
 
26
 MULTIMEDIA="
26
 MULTIMEDIA="
27
 kodi kodi-pvr-hts
27
 kodi kodi-pvr-hts
28
+ubuntu-restricted-extras libdvd-pkg
28
 "
29
 "
29
 _MULTIMEDIA_="
30
 _MULTIMEDIA_="
30
 ubuntu-restricted-extras libdvd-pkg
31
 ubuntu-restricted-extras libdvd-pkg

+ 5
- 7
mkvenv View File

1
 if [ ! -e venv ];then
1
 if [ ! -e venv ];then
2
     virtualenv venv
2
     virtualenv venv
3
-    source venv/bin/activate
4
-    if pip -V | grep `pwd -P`; then
5
-        pip install --upgrade pip
6
-        pip_upgrade_all
7
-        find . -name requirements.txt | xargs -L 1 pip install -r
8
-        deactivate
3
+    if venv/bin/pip -V | grep `pwd -P`; then
4
+        venv/bin/pip install --upgrade pip
5
+        find . -name requirements.txt | xargs -L 1 venv/bin/pip install -r
6
+        venv/bin/pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 venv/bin/pip install -U
9
     else
7
     else
10
-        echo Could not activate venv!
8
+        echo Not running in the venv!
11
     fi
9
     fi
12
 else
10
 else
13
     echo Virtualenv already exists!
11
     echo Virtualenv already exists!

+ 3
- 0
reposinit View File

1
+#!/bin/sh
2
+#
3
+./mkvenv

Loading…
Cancel
Save