mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-15 10:08:00 +00:00
add check for pyparsing
Check both in configure.ac (after checking if we need to rebuild the marshalling files) and in the python script using pyparsing (for people modifying .proto files in tarballs)
This commit is contained in:
parent
85a49d512a
commit
e0a8d6625c
@ -1,6 +1,11 @@
|
||||
from pyparsing import Literal, CaselessLiteral, Word, OneOrMore, ZeroOrMore, \
|
||||
Forward, delimitedList, Group, Optional, Combine, alphas, nums, restOfLine, cStyleComment, \
|
||||
alphanums, ParseException, ParseResults, Keyword, StringEnd, replaceWith
|
||||
try:
|
||||
from pyparsing import Literal, CaselessLiteral, Word, OneOrMore, ZeroOrMore, \
|
||||
Forward, delimitedList, Group, Optional, Combine, alphas, nums, restOfLine, cStyleComment, \
|
||||
alphanums, ParseException, ParseResults, Keyword, StringEnd, replaceWith
|
||||
except ImportError:
|
||||
print "Module pyparsing not found."
|
||||
exit(1)
|
||||
|
||||
|
||||
import ptypes
|
||||
import sys
|
||||
|
||||
Loading…
Reference in New Issue
Block a user