File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 long_description_content_type = "text/markdown" ,
3434 url = "https://github.com/evgskv/logica" ,
3535 packages = setuptools .find_namespace_packages (),
36+ package_data = {
37+ # The release script clones the repo into a `logica/` folder and builds a
38+ # namespace package, so this package is named `logica.parser_cpp`.
39+ # Ship the C++ source so the runtime bridge can build liblogica_parse_cpp.so.
40+ 'logica.parser_cpp' : ['logica_parse.cpp' ],
41+ },
3642 classifiers = [
3743 "Topic :: Database" ,
3844 "License :: OSI Approved :: Apache Software License"
Original file line number Diff line number Diff line change @@ -551,3 +551,11 @@ def PostgresJumpStart():
551551 print ('Installation succeeded. Connecting...' )
552552 # Connect to the database.
553553 ConnectToLocalPostgres ()
554+
555+
556+ def UseCppParser ():
557+ os .environ ['LOGICA_PARSER' ] = 'CPP'
558+ from .parser_cpp import logica_parse_cpp # type: ignore
559+ so_path = logica_parse_cpp .EnsureCppParserSharedObject ()
560+ logica_parse_cpp .LoadCppParserLib ()
561+ return so_path
You can’t perform that action at this time.
0 commit comments