Skip to main content

Compile IronPython scripts into a stand-alone .NET assembly.

Project description

IronPyCompiler is a library for compiling IronPython scripts requiring modules from the Python standard library (or third-party pure-Python modules) into a stand-alone .NET assembly (a DLL file or an executable), using

In order to compile IronPython scripts, we can use, which is included in the IronPython distribution. However, does not check dependecies of the scripts, which results in an incomplete .NET assembly. What is worse, the module modulefinder of IronPython does not work correctly. This is why compiling IronPython scripts is more difficult than it looks.

IronPyCompiler will solve this problem. It examines what modules your scripts require, using the module modulefinder of CPython, and compiles them with into a stand-alone .NET assembly, calling ipy.exe.


v0.10.1 (2014-08-30)

  • Solved the problem that mutable default values are used.

v0.10.0 (2014-08-20)

  • New feature: Specifying the path to
  • A new exception for compilation errors.
  • Updated the command-line tool.
  • Deprecated some functions and methods.
  • Solved the problem that compiler.gather_ipy depends on a deprecated function.

v0.9.0 (2014-04-03)

  • New feature: Copying IronPython DLLs into the destination directory.
  • New functions for a multi-IronPython system.
  • Improved auto-detection of IronPython.
  • Updated the command-line tool.

v0.8.2 (2014-03-18)

  • Solved the problem that the Windows registry is always ignored.

v0.8.1 (2014-03-16)

  • Updated the command-line tool.

v0.8.0 (2014-03-15)

  • A new parameter of the method compiler.ModuleCompiler.call_pyc: cwd.
  • Solved the problem that .NET assemblies will be generated in the current working directory even if the destination directory is specified.

v0.7.1 (2014-03-13)

  • Revised

v0.7.0 (2014-03-11)

  • Moved the command-line tool into the package.

v0.6.0 (2014-03-10)

  • Separated ironpycompiler and created a package.
  • Added analyze command to, the command-line tool of IronPyCompiler.

v0.5.0 (2014-03-08)

  • Enabled this module to be run as a script.

v0.4.0 (2014-03-07)

  • Added create_dll and create_exectuable.

v0.3.0 (2014-03-06)

  • Changed the arguments of __init__ and check_compilablity.

v0.2.0 (2014-03-06)

  • Started to support for multiple IronPython scripts.
  • Does not inherit from modulefinder.ModuleFinder any more.

v0.1.0 (2014-03-03)

  • The first commit.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (38.2 kB view hashes)

Uploaded source

Built Distribution (278.8 kB view hashes)

Uploaded any

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page