-
Notifications
You must be signed in to change notification settings - Fork 128
Building windows binary from Linux
Federico Tomassetti edited this page Jan 25, 2015
·
3 revisions
The suggested approach is to use a specific docker image: https://github.com/ogrisel/python-winbuilder
To do that install docker. In Ubuntu you can do that with:
sudo apt install docker.io
Supposing you have the pyplatec code check out under ~/repos/pyplatec run:
docker run -t -i -v ~/repos:/code ogrisel/python-winbuilder bash
In the wine console move to the lands directory:
cd ../code/lands
It will download a large docker image and open a bash console into the image. From there we can run a wine console:
WINEPREFIX=/wine/wine-py2.7.8-64 wineconsole --backend=curses cmd
Install the requirements. Supposing you are using Python 2 run:
python -m pip install -r requirements2.txt
Note that a compiled version of PyPlatec should be available so no C/C++ compilation should happen.
Now let's install pyinstaller
python -m pip install -U pip
python -m pip install -U setuptools
python -m pip install pyinstaller