Advertisement
tareqmahmud9

Untitled

Oct 25th, 2021
1,178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. # setup.py
  2. import os
  3. from setuptools import setup,
  4.  
  5. arch = os.uname().machine
  6.  
  7. if arch == 'armv7l':
  8.     tensorflow = 'tensorflow @ https://github.com/bitsy-ai/tensorflow-arm-bin/releases/download/v2.4.0-rc2/tensorflow-2.4.0rc2-cp37-none-linux_armv7l.whl'
  9.    
  10. elif arch == 'aarch64':
  11.     tensorflow = 'https://github.com/bitsy-ai/tensorflow-arm-bin/releases/download/v2.4.0-rc2/tensorflow-2.4.0rc2-cp37-none-linux_aarch64.whl'  
  12.  
  13. elif arch == 'x86_64':
  14.     tensorflow = "tensorflow==2.4.0rc2"
  15. else:
  16.     raise Exception(f'Could not find TensorFlow binary for target {arch}. Please open a Github issue.')
  17.    
  18. requirements = [
  19.    tensorflow,
  20.    # specify additional package requirements here
  21. ]
  22.  
  23. setup(
  24.    install_requires=requirements,
  25.    # specify additional setup parameters here
  26. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement