Build standalone Windows version

This commit is contained in:
Fabien LOISON 2020-04-17 15:22:56 +02:00
parent 77fcf6b94f
commit c3d8ab3fd7
No known key found for this signature in database
GPG Key ID: FF90CA148348048E
4 changed files with 50 additions and 2 deletions

View File

@ -74,7 +74,11 @@ Build and install using the following command::
Windows
~~~~~~~
Building YOGA on Windows is not supported yet...
The simplest way to use YOGA on Windows is to download the standalone builds available here:
* https://github.com/wanadev/yoga/releases
If you need YOGA as a library or if you really want to build it yourself, look in the ``winbuild`` folder.
Installing Development Dependencies

View File

@ -107,4 +107,3 @@ setup(
"build_py": CustomBuildPy,
},
)

32
winbuild/README.md Normal file
View File

@ -0,0 +1,32 @@
# YOGA: Windows Build
## Requirements
* Git Bash (https://git-scm.com/downloads)
* Python 3.x **64bit** (https://www.python.org/downloads/windows/)
* Virtualenv (`pip install virtualenv` if not installed by the Python installer)
* CMake (https://cmake.org/download/)
* Visual Studio Build Tools (MSVC and MSBuild)
## Build and install from PYPI
pip install yoga
## Build standalone version from source
Clone this repository (using Git Bash):
git clone https://github.com/wanadev/yoga.git
cd yoga
git submodule init
git submodule update
Run the build script:
./winbuild/builddist.bat
Once the build finished, you will find the result in the `yogawin.dist` folder. To run YOGA, use the `yogawin.exe` executable:
./yogawin.dist/yogawin.exe -h

13
winbuild/builddist.bat Normal file
View File

@ -0,0 +1,13 @@
setlocal
virtualenv __env__
call __env__\Scripts\activate.bat
pip install .
pip install nuitka
python -m nuitka --follow-imports --standalone --windows-dependency-tool=pefile winbuild\yogawin.py
call __env__\Scripts\deactivate.bat
endlocal