Sunday, December 7, 2014

Pip in IronPython 2.7.5

With IronPython 2.7.5 finally released, one of the most useful features is finally widely available – pip support.

Installing pip is done with a backport of the ensurepip module:

ipy -X:Frames -m ensurepip

Note that –X:Frames is always required when working with pip. If using an installed IronPython that should be run from an Administrator command prompt (or using install -user). Using a regular command prompt will probably result in errors.


To install packages:

ipy -X:Frames -m pip install html5lib

Unfortunately pip does not work, so the longer version has to be used instead.


There is no gaurantee that all libraries will install or run successfully, but many popular ones (like html5lib) do.

Saturday, December 6, 2014

IronPython 2.7.5 Released

On behalf of the IronPython team, I'm very happy to announce the release IronPython 2.7.5. Like all IronPython 2.7-series releases, .NET 4 is required to install it. Installing this release will replace any existing IronPython 2.7-series installation. Assemblies for embedding are provided for .NET 3.5, .NET 4, .NET 4.5, and Silverlight 5.

IronPython 2.7.5 is primarily a collection of bug fixes which smooths off many of the remaining rough edges. The complete list of changes is also available.

A major new feature is the inclusion of ensurepip, which will install the pip package manager:

; -X:Frames is required when using pip
ipy.exe -X:Frames -m ensurepip

; Run from an Administrator console if using IronPython installer
ipy.exe -X:Frames -m pip install html5lib

Note: The assembly version of IronPython has changed to 2.7.5.0. All previous 2.7 versions had the same version (2.7.0.40) which caused issues when different versions were installed. Publisher policy files are used to so that applications don't have to be recompiled, but recompiling is strongly recommended.

A huge thanks goes out to Pawel Jasinski, who contributed most of the changes in this release. Thanks is also due to Simon Opelt, Alex Earl, Jeffrey Bester, yngipy hernan, Alexander Köplinger,Vincent Ducros, and fdanny.

For Visual Studio integration, check out Python Tools for Visual Studio which has support for IronPython as well as CPython, and many other fantastic features.

IronPython 2.7.5 is also available for embedding via NuGet. The main package is IronPython, and the standard library is in IronPython.StdLib.