Fork PyRPL on GitHub

5.7.2. How to make a single-file pyrpl executable not depending on a Python installation¶

In the pyrpl root dir:

conda create -y -n py34 python=3.4 numpy scipy paramiko pandas nose pip pyqt qtpy
activate py34
python develop
pip install pyinstaller
pyinstaller --clean --onefile --distpath dist -n pyrpl ./scripts/

We now use spec files in order to include the fpga bitfile in the bundle. This requires only

pyi-makespec --onefile -n pyrpl ./scripts/
# add datas section to the file...
# datas=[('pyrpl/fpga/red_pitaya.bin', 'pyrpl/fpga'),
pyinstaller pyrpl.spec