diff --git a/antlr3runtime/Python/antlr3 b/antlr3runtime/Python/antlr3 new file mode 120000 index 000000000..b8b214f6f --- /dev/null +++ b/antlr3runtime/Python/antlr3 @@ -0,0 +1 @@ +../../thirdparty/antlr3-antlr-3.5/runtime/Python/antlr3/ \ No newline at end of file diff --git a/antlr3runtime/Python3/antlr3 b/antlr3runtime/Python3/antlr3 new file mode 120000 index 000000000..e1509cfbc --- /dev/null +++ b/antlr3runtime/Python3/antlr3 @@ -0,0 +1 @@ +../../thirdparty/antlr3-antlr-3.5/runtime/Python3/antlr3/ \ No newline at end of file diff --git a/congress/datalog/compile.py b/congress/datalog/compile.py index acc6ef778..753bd7269 100644 --- a/congress/datalog/compile.py +++ b/congress/datalog/compile.py @@ -40,12 +40,12 @@ _congressDir = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) if six.PY2: sys.path.append(_congressDir + - "/thirdparty/antlr3-antlr-3.5/runtime/Python/") + "/antlr3runtime/Python/") from congress.datalog.Python2 import CongressLexer from congress.datalog.Python2 import CongressParser else: sys.path.append(_congressDir + - "/thirdparty/antlr3-antlr-3.5/runtime/Python3/") + "/antlr3runtime/Python3/") from congress.datalog.Python3 import CongressLexer from congress.datalog.Python3 import CongressParser import antlr3 diff --git a/setup.cfg b/setup.cfg index aff3bbc14..26f9560cd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,7 +22,8 @@ classifier = [files] packages = congress - antlr3 + antlr3runtime/Python/antlr3 + antlr3runtime/Python3/antlr3 [global] setup-hooks =