Run go get
in the root directory
Setup gopy
Run
$ gopy build --output=engine github.com/go-compression/raisin/engine
Install requirements
$ pip install -r requirements.txt
Use ./start.sh
to run the program from the shell
This exports the engine directory as a LD_LIBRARY_PATH which needs to be set before invoking the python program.
Here's a sample VSCode run configuration:
{
"name": "test.py",
"type": "python",
"request": "launch",
"program": "test.py",
"console": "integratedTerminal",
"env": {
"LD_LIBRARY_PATH": "${env:LD_LIBRARY_PATH}:${fileDirname}/engine"
},
"cwd": "${workspaceFolder}/ai/"
}