Skip to content

Microsoft Windows Users

Wenzel Kuhn edited this page May 12, 2022 · 2 revisions

Prerequisites

To run Kinto application on MS-Windows properly you need to install python compiler and the Visual C++ Build tools. Amongst compilers such as MSBuild, MSYS, MinGW, Cygwin, etc., in which prepare native tools to install and run the application depends on your taste you can choose one. I, personally, prefer Microsoft Build Tools accompany with Powershell and Scoop to have the best experience in the MS-Windows environment. Following instruction helps you to install required and optional prerequisites to do so.

[Required]

  • You can access to Microsoft Build Tools and follow its instruction to install one possible python compiler.
  • Since libffi is needed to run kinto project properly, you should have made it once you've installed Build Tools 14.0+ by applying following lines in x86/x64 Native Tool Command Prompt
git clone git://github.com/libffi/libffi.git

Navigate to libffi folder and from there run the following line

path/to/configure CC=path/to/msvcc.sh CXX=path/to/msvcc.sh LD=link CPP="cl -nologo -EP"

If you're on x64 arch machine you should have set

CC="path/to/msvcc.sh -m64" and CXX="path/to/msvcc.sh -m64"

and run the above command instead. libffi homepage has more information if it's needed. Also, it's noticeable that if you haven't installed git yet, you can easily install it via command line thanks to scoop as following

scoop install git-with-openssh

[Optional]

Command-line tool scoop is an optional and useful tool to install and manage application via a command line (almost like brew in Mac). To take advantage of it you need to change the execution policy to either of Unrestricted, RemoteSigned, or Bypass due to run scrips via Powershell by executing following lines

Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex

Yet, if you've not installed scoop, you can skip the first line and install those requirements manually unless you might wanna execute all lines you might ignore installed ones.

scoop install openssl pkg-config python
pip install virtualenv