-
Notifications
You must be signed in to change notification settings - Fork 2
Compiling from source
Muzhen Gaming edited this page Sep 18, 2023
·
3 revisions
PVengine is normally distributed in the form of source code: in particular, Python files.
However, many applications, most notably tournament play and usage in a GUI, require an exectuable file to be present, not a Python file.
Below are instructions on how to compile PVengine:
This method produces fast executables that have very small startup time. In comparison, method 2's binary takes a few seconds to start up each time it's launched, making it unideal for analysis.
- Install cx_freeze:
pip install cx_Freeze. - Run the bash script
src/engine/engine_build_fast.sh. If that doesn't work, you can also run:
cd src/engine
cxfreeze -c engine_main.py --target-dir=build --target-name=pvengine
- Install pyinstaller:
pip install pyinstaller - Run the bash script
src/engine/engine_build.sh. If that doesn't work, you can also run:
cd src/engine
pyinstaller engine_main.py --onefile -n pvengine