setup.py: make print statements compatible with both Python 2 and 3
This commit is contained in:
parent
d232fce7b2
commit
fcf67c0209
1 changed files with 7 additions and 5 deletions
12
setup.py
12
setup.py
|
|
@ -1,8 +1,10 @@
|
||||||
print 'THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS'
|
print('Adafruit GPIO Library')
|
||||||
print 'Especially if you installed python for "all users"'
|
print('Works best with Python 2.7')
|
||||||
print 'try the following in command prompt if ensurepip is not sufficient'
|
print('THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS')
|
||||||
print '$ python -m ensurepip --upgrade'
|
print('Especially if you installed python for "all users" on Windows')
|
||||||
print '$ python -m pip install --upgrade pip setuptools'
|
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
|
import sys
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue