You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2019. It is now read-only.
doing a better job than #96
prints possible requirement for root or admin privileges
tries to import pip before calling ensurepip (which isnt needed for python 3)
this time, don't even keep the method from ez_setup.py, there's no point...
commenting it out with ''' ''' gave me an IOError
bump version because why not?
# Try using ez_setup to install setuptools if not already installed.
9
-
fromez_setupimportuse_setuptools
10
-
use_setuptools()
9
+
importpip
10
+
fromsetuptoolsimportsetup, find_packages
11
11
exceptImportError:
12
-
# Ignore import error and assume Python 3 which already has setuptools.
13
-
pass
14
-
15
-
fromsetuptoolsimportsetup, find_packages
16
-
17
-
importsys
12
+
importensurepip
13
+
ensurepip.version()
14
+
ensurepip.bootstrap()
15
+
fromsetuptoolsimportsetup, find_packages
18
16
19
17
# Define required packages.
20
18
requires= ['adafruit-pureio']
19
+
21
20
# Assume spidev is required on non-windows & non-mac platforms (i.e. linux).
22
21
ifsys.platform!='win32'andsys.platform!='darwin':
23
22
requires.append('spidev')
24
23
25
24
setup(name='Adafruit_GPIO',
26
-
version='1.0.3',
25
+
version='1.0.4',
27
26
author='Tony DiCola',
28
27
author_email='tdicola@adafruit.com',
29
28
description='Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.',
0 commit comments