Skip to content

Commit

Permalink
vendor tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl
Browse files Browse the repository at this point in the history
  • Loading branch information
leigh-johnson committed Nov 8, 2019
1 parent c53a948 commit f90daf0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions playbooks/bootstrap-rpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
- name: "Install platform dependencies"
become: yes
apt:
name: ['tmux']
name: ['tmux', 'cmake', 'virtualenv']
- name: "Clone rpi-vision"
git:
repo: 'https://github.com/leigh-johnson/rpi-vision'
Expand Down Expand Up @@ -103,7 +103,7 @@
content: "/usr/local/bin/{{tft_driver_install_script}}"
dest: /home/pi/.tft_screen_installed
- name: Create virtual environment
shell: virtualenv -p $(which python3.6) .venv
shell: virtualenv -p $(which python3) .venv
args:
creates: "{{rpi_vision_dir}}/.venv"
chdir: "{{rpi_vision_dir}}"
Expand Down
17 changes: 9 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

'''The setup script.'''

import subprocess
import os
import platform
import subprocess
from setuptools import setup, find_packages, Command
from distutils.command.build import build as _build

Expand All @@ -15,23 +16,19 @@
with open('HISTORY.rst') as history_file:
history = history_file.read()

common_requirements = [
'tensorflow==2.0.0'
]

# tensorflow 2.0 wheel has not been released for Raspbian yet
trainer_requirements = [
'ansible==2.8.1',
'tensorflow-datasets>=1.3.0',
'tensorflow-hub>=0.7.0'
'tensorflow-hub>=0.7.0',
'tensorflow==2.0.0'
]
trainer_requirements = list(map(
lambda x: x + ';platform_machine=="x86_64"', trainer_requirements
))

rpi_requirements = [
'picamera>=1.13.0',
'Pillow>=6.0.0'
'Pillow>=6.0.0',
]
rpi_requirements = list(map(
lambda x: x + ';platform_machine=="armv7l"', rpi_requirements))
Expand Down Expand Up @@ -135,4 +132,8 @@ def run(self):
url='https://github.com/leigh-johnson/rpi-vision',
version='0.1.0',
zip_safe=False,
dependency_links=[
# location to your egg file
os.path.join(os.getcwd(), 'includes', 'tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl')
]
)

0 comments on commit f90daf0

Please sign in to comment.