How do I install PyPy on appveyor?

509 views Asked by At

I have a Python extension that needs to be compiled against the PyPy interpreter on the Windows-based Appveyor continuous integration service. How do I get PyPy in that environment?

1

There are 1 answers

0
Feodor Fitsner On BEST ANSWER

Add this PowerShell commands to "Install" phase of your build:

(New-Object Net.WebClient).DownloadFile('https://bitbucket.org/pypy/pypy/downloads/pypy3-2.4.0-win32.zip', "$env:appveyor_build_folder\pypy3-2.4.0-win32.zip")
7z x pypy3-2.4.0-win32.zip | Out-Null
$env:path = "$env:appveyor_build_folder\pypy3-2.4.0-win32;$env:path"

Then you can call pypy.exe from anywhere in your build.