Pyjion - A JIT for Python based upon CoreCLR
Pre-Reqs (all of which need to be reachable on your PATH)
- For CoreCLR
- For CPython
- Git
- TortoiseSVN (required to get external dependencies)
- Visual Studio
Getting Started
Download dependencies
Run GetDeps.bat
to use git to download CoreCLR and Python. It will also patch Python to have JIT support and CoreCLR to disable COM support.
Build Dependencies
Run BuildDeps.cmd
to build CoreCLR and Python (which includes downloading Python's dependencies).
Building
- From Visual Studio
- Open the
pyjion.sln
file - Build the solution
- Open the
- Run
CopyFiles.bat
to copy files to key locations
Testing
- From Visual Studio
- Set the
Test
solution as the StartUp project - Run the solution (i.e., press F5)
- Set the
- From Powershell
- Run
x64\Debug\Test.exe
- Run
If the output window closes and return an exit code of 0 then the tests passed.
Running
- Copy
x64\Debug\pyjit.dll
toPython\PCbuild\amd64\
(initially done byCopyFiles.bat
, so only do as necessary after rebuilding Pyjion) - Go into the
Python
directory and launchpython.bat
Known Issues
You'll need to run git clean -d -f -x
in CoreCLR when switching between release and debug builds.