Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
machine is a function
Browse files Browse the repository at this point in the history
  • Loading branch information
mvrozanti committed Jun 29, 2019
1 parent 35080d7 commit 8fab16e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ py37-steps: &py37-steps

matrix:
allow_failures:
- python: 2.7 # It is legacy Python after all...
# - python: 3.5 # f-strings are available on Python >= 3.6
- python: p27-steps # It is legacy Python after all...
include:
- name: "Python 2.7: Run tests"
<<: *py27-steps
Expand Down
8 changes: 4 additions & 4 deletions setup_rat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@

s('pip install -r requirements.txt')

if machine == '':
if machine() == '':
print('\nUnable to determine platform.\n')
exit(1)
elif machine == 'i386':
elif machine() == 'i386':
fileA = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/PyAudio-0.2.11-cp37-cp37m-win32.whl'
fileB = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/pyHook-1.5.1-cp37-cp37m-win32.whl'
elif machine == 'amd64':
elif machine() == 'amd64':
fileA = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/PyAudio-0.2.11-cp37-cp37m-win_amd64.whl'
fileB = 'https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/pyHook-1.5.1-cp37-cp37m-win_amd64.whl'
else:
print('\n\nYou are probably running a processor like ARM: "' + machine + '". This isn\'t supported due to the lack of dependencies supporting ARM.')
print('\n\nYou are probably running a processor like ARM: "' + machine() + '". This isn\'t supported due to the lack of dependencies supporting ARM.')

s('pip install '+fileA)
s('pip install '+fileB)
Expand Down

0 comments on commit 8fab16e

Please sign in to comment.