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

Commit fcf67c0

Browse files
author
mpratt14
authored
setup.py: make print statements compatible with both Python 2 and 3
1 parent d232fce commit fcf67c0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

setup.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
print 'THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS'
2-
print 'Especially if you installed python for "all users"'
3-
print 'try the following in command prompt if ensurepip is not sufficient'
4-
print '$ python -m ensurepip --upgrade'
5-
print '$ python -m pip install --upgrade pip setuptools'
1+
print('Adafruit GPIO Library')
2+
print('Works best with Python 2.7')
3+
print('THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS')
4+
print('Especially if you installed python for "all users" on Windows')
5+
print('\ntry the following in your systems terminal if ensurepip is not sufficient:')
6+
print('$ python -m ensurepip --upgrade')
7+
print('$ python -m pip install --upgrade pip setuptools')
68

79
import sys
810
try:

0 commit comments

Comments
 (0)