How do I install PyPy on appveyor?
Asked Answered
H

1

6

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?

Heldentenor answered 13/6, 2015 at 19:48 Comment(0)
V
9

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.

Voe answered 14/6, 2015 at 22:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.