summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-02 18:58:23 -0700
committerGary E. Miller <gem@rellim.com>2018-10-02 18:58:23 -0700
commita31261d55b850fd425c2cfb091b91dd2088c30d2 (patch)
treedd8b31d442b333b34ba507234b1c2802237730a5 /SConstruct
parentd1739870f226b95fd31a95a660cd94c437c31fe5 (diff)
downloadgpsd-a31261d55b850fd425c2cfb091b91dd2088c30d2.tar.gz
SConstruct: Add warning about missing pyserial.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct20
1 files changed, 14 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index 2908604d..7e793867 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1367,23 +1367,31 @@ if not env['python']:
else:
python_progs = ["gegps", "gpscat", "gpsfake", "gpsprof", "ubxtool", "zerk"]
+ # check for pyserial
+ try:
+ imp.find_module('serial')
+ except ImportError:
+ # no pyserial, reduced functionality in ubxtool and zerk
+ announce("WARNING: Python module serial (pyserial) not found.\n"
+ " The functionality of ubxtool and zerk will be limited")
+
if env['xgps']:
# check for pycairo
try:
imp.find_module('cairo')
except ImportError:
- # no pycairo, can't build xgps, xgpsspeed
- announce("Python module pycairo not found, "
- "xgps and xgpsspeed will not be installed")
+ # no pycairo, don't build xgps, xgpsspeed
+ announce("WARNING: Python module pycairo not found.\n"
+ " xgps and xgpsspeed will not be installed")
env['xgps'] = False
# check for pygobject
try:
imp.find_module('gi')
except ImportError:
- # no pycairo, can't build xgps, xgpsspeed
- announce("Python module pygobject not found, "
- "xgps and xgpsspeed will not be installed")
+ # no pycairo, don't build xgps, xgpsspeed
+ announce("WARNING: Python module pygobject not found.\n"
+ " xgps and xgpsspeed will not be installed")
env['xgps'] = False
if env['xgps']: