add VIA_PYPI and ALLOW_ALL_BITS to support tensorflow installation via pypi on RPi4 ...
@@ -90,7 +90,7 @@ def setup(i):
ft=i.get('features',{})
# Check bits
- if hbits!='64':
+ if hbits!='64' and ie.get('ALLOW_ALL_BITS','').lower()!='yes':
return {'return':1, 'error':'only 64-bit host is supported for this package'}
# Check python path and version
@@ -109,6 +109,10 @@ def setup(i):
sver2=''
# Check download path
+ if ie.get('VIA_PYPI','').lower()=='yes':
+ p='tensorflow=='+ie['TENSORFLOW_PACKAGE_VER']
+ proto=''
+ else:
p='https://storage.googleapis.com/tensorflow/'
if hname=='win':
@@ -156,8 +160,6 @@ def setup(i):
p += '-' + px
-
-
################################ Prepare protobuf ################################
proto += 'protobuf-3.1.0-'
