Skip to content
Snippets Groups Projects
Commit 6a76b782 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #10368: fabric is not required during build, but during runtime. So try...

Task #10368: fabric is not required during build, but during runtime. So try to import, and explain what to do when fabric is not installed. The build-host is also not necessarily the run-host
parent 39b9fad8
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
include(FindPythonModule)
find_python_module(fabric REQUIRED)
find_python_module(fabric)
lofar_add_bin_scripts(
pipelinecontrol
......
......@@ -19,10 +19,16 @@
# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>.
import os
import logging
from fabric import tasks
from optparse import OptionParser
from fabric.api import env, run
try:
from fabric import tasks
from fabric.api import env, run
except ImportError as e:
print str(e)
print 'Please install python package fabric: sudo apt-get install fabric'
exit(1)
from lofar.messaging import Service
from lofar.messaging import setQpidLogLevel
from lofar.common.util import waitForInterrupt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment