Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
setup.py: make print statements compatible with both Python 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mpratt14 authored Apr 3, 2019
1 parent d232fce commit fcf67c0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
print 'THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS'
print 'Especially if you installed python for "all users"'
print 'try the following in command prompt if ensurepip is not sufficient'
print '$ python -m ensurepip --upgrade'
print '$ python -m pip install --upgrade pip setuptools'
print('Adafruit GPIO Library')
print('Works best with Python 2.7')
print('THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS')
print('Especially if you installed python for "all users" on Windows')
print('\ntry the following in your systems terminal if ensurepip is not sufficient:')
print('$ python -m ensurepip --upgrade')
print('$ python -m pip install --upgrade pip setuptools')

import sys
try:
Expand Down

0 comments on commit fcf67c0

Please sign in to comment.