nulano / pypy_ext

Scripts to build PyPy dependencies using Python 3.6+ and MSVS 2017+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository contains scripts which can be used to build PyPy dependencies on Windows.

To run these scripts you must use Python 3.6+ and have Visual Studio 2015 (preferred) or newer installed.

These scripts were tested on x64 with VS 2015 Community (version 14.0.25431.01 Update 3).

Tcl/Tk may fail to build on VS 2017 or newer, all other dependencies build successfully (some are downloaded pre-built).

See build_prepare.py for details, based on https://foss.heptapod.net/pypy/externals/-/tree/branch/win32_160 readme.

See branch win64_140 for built binaries.


To run a PyPy translation and some tests like rpython/jit/backend, you need:

  1. DO NOT use the same directory as your win32 checkout of pypy, if you already installed the same dependencies for win32 in the parent directory of the checkout, because there is confusion over which one it tries to pick. Instead, I made another clone (or 'hg share') inside this directory here.

  2. the PYTHONPATH should point to a directory where you manually copy a few pure-python packages, or maybe even to the same site-packages directory of another python installation. I needed 'attr', 'enum', 'hypothesis' and 'pycparser'. (I copied them manually because I failed to run 'pip' with the modified cpython6464.)

  3. prepare and run a .bat file of this kind:

set PATH=d:\pypy\pypy\cpython6464\pcbuild\amd64;d:\pypy\pypy\pypy_ext\build\bin;%PATH%
set INCLUDE=d:\pypy\pypy\pypy_ext\build\include;%INCLUDE%
set LIB=d:\pypy\pypy\pypy_ext\build\lib;%LIB%
set PYTHONPATH=d:\pypy\pypy\pypy_ext\site-packages;%PYTHONPATH%

call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64

About

Scripts to build PyPy dependencies using Python 3.6+ and MSVS 2017+


Languages

Language:Python 100.0%