use python3.4 .5 can not import ed25519 build for 3.4

This commit is contained in:
j 2015-11-04 19:53:43 +01:00
commit 395c6e5112
2 changed files with 13 additions and 10 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.3
from __future__ import division, with_statement, print_function
from contextlib import closing
@ -53,7 +53,7 @@ class Install(Thread):
apt_packages = ''
dnf_packages = ''
try:
import Image
from PIL import Image
import lxml
except:
apt_packages += ' python3.4 python3-pil python3-lxml'
@ -126,6 +126,9 @@ def has_bin(cmd):
return subprocess.call(['which', cmd], stdout=subprocess.PIPE) == 0
if __name__ == '__main__':
if sys.version_info[:2] != (3,4):
print("You need python3.4")
sys.exit(1)
if len(sys.argv) == 1:
if sys.platform == 'darwin':
target = os.path.expanduser('~/Library/Application Support/Open Media Libary')