-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CI, Deploy to latest PyPy versions.
Refactors Python installs and sets up virtual environments. PyPy virtualenv is a hack, there's an issue with PowerShell scripts.
- Loading branch information
1 parent
c7ba6a2
commit beca7c4
Showing
4 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
if ($env:PYPY -or $env:PYPY3) { | ||
if($env:PYPY3){ | ||
$env:PYPY_EXE='pypy3.exe' | ||
$env:PYPY=$env:PYPY3 | ||
} else { | ||
$env:PYPY_EXE='pypy.exe' | ||
} | ||
$env:PYTHON = 'C:\' + $env:PYPY + '\' + $env:PYPY_EXE | ||
$env:PATH += ';' + 'C:\' + $env:PYPY + '\' | ||
$PYPY_DOWNLOAD = 'https://bitbucket.org/pypy/pypy/downloads/' + $env:PYPY + '.zip' | ||
Invoke-WebRequest $PYPY_DOWNLOAD -OutFile C:\pypy.zip | ||
& '7z' x C:\pypy.zip -oC:\ | ||
& $env:PYTHON -m ensurepip | ||
} | ||
& $env:PYTHON -m pip install --disable-pip-version-check virtualenv | ||
& $env:PYTHON -m virtualenv venv | ||
|
||
if ($env:PYPY) { | ||
# HACK 2017-12-28 HexDecimal, remove this code once pypy virtual | ||
# environments are fixed for `activate.ps1` | ||
cp -r venv/bin venv/Scripts | ||
} | ||
. ./venv/Scripts/activate.ps1 | ||
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters