setup.py: make print statements compatible with both Python 2 and 3

This commit is contained in:
mpratt14 2019-04-02 20:37:50 -04:00 committed by GitHub
parent d232fce7b2
commit fcf67c0209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: