We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08cde8c commit f9fdebeCopy full SHA for f9fdebe
.travis.yml
@@ -3,10 +3,11 @@ python:
3
- 3.6
4
sudo: false
5
dist: trusty
6
-addons:
7
- apt:
8
- packages:
9
- - libgpiod1
+## we need that for actual tests
+#addons:
+# apt:
+# packages:
10
+# - libgpiod1
11
12
env:
13
- CHECK_DOCS=1
trio_gpio/libgpiod.py
@@ -297,7 +297,10 @@
297
"""
298
)
299
300
-lib = ffi.dlopen("libgpiod.so.1")
+try:
301
+ lib = ffi.dlopen("libgpiod.so.1")
302
+except OSError:
303
+ lib = None # may fail if we're only building docs
304
305
DIRECTION_INPUT = lib.GPIOD_LINE_REQUEST_DIRECTION_INPUT
306
DIRECTION_OUTPUT = lib.GPIOD_LINE_REQUEST_DIRECTION_OUTPUT
0 commit comments