Module for detecting where the IronPython executables exist.
Decide the optimum version of IronPython in your system.
This function decides the most suitable version of IronPython in your system for the version of CPython on which IronPyCompiler is being run, and returns a tuple showing its version number and its location (the path to the IronPython directory).
Example: On CPython 2.7, first this function searches for IronPython 2.7. If this fails, then the newest IronPython 2.x in your system will be selected.
Return type: | tuple |
---|---|
Raises ironpycompiler.exceptions.IronPythonDetectionError: | |
if this function could not decide the optimum version |
New in version 0.9.0.
This function returns the list of the paths to the IronPython directories.
This function searches in the Windows registry and PATH for IronPython.
Parameters: |
|
---|---|
Return type: | list |
Raises ironpycompiler.exceptions.IronPythonDetectionError: | |
if IronPython cannot be found |
Changed in version 0.9.0: This function now calls search_ipy().
Warning
This function is deprecated, and will be removed in the next major version. Please use search_ipy().
Search for IronPython directories.
This function searches for IronPython directories using both search_ipy_env() and search_ipy_reg(), and returns a dictionary showing the versions of IronPython and their locations (the paths to the IronPython directories).
Parameters: |
|
---|---|
Return type: | dict |
New in version 0.9.0.
Changed in version 0.10.1: Solved the problem that the default value for the argument regkeys was mutable.
Search for IronPython directories included in the PATH variable.
This function searches for IronPython executables in your system, reading the PATH environment variable, and gets their version numbers, executing the executables.
This function returns a dictionary showing the versions of IronPython and their locations (the paths to the IronPython directories).
Parameters: | executable (str) – (optional) The name of the IronPython executable. |
---|---|
Return type: | dict |
Raises ironpycompiler.exceptions.IronPythonDetectionError: | |
if IronPython cannot be found |
New in version 0.9.0.
Search for IronPython regisitry keys.
This function searches for IronPython keys in the Windows registry, and returns a dictionary showing the versions of IronPython and their locations (the paths to the IronPython directories).
Parameters: | regkeys (list) – (optional) The IronPython registry keys that should be looked for. |
---|---|
Return type: | dict |
Raises ironpycompiler.exceptions.IronPythonDetectionError: | |
if IronPython keys cannot be found |
New in version 0.9.0.
Changed in version 0.10.1: Solved the problem that the default value for the argument regkeys was mutable.
Module for analyzing and compiling IronPython scripts.
This class finds the modules required by your script and create a .NET assembly.
By default this class searches for pure-Python modules in the IronPython standard library and the CPython site-packages directory.
Parameters: |
|
---|
Changed in version 0.10.0: The argument pyc_path was added.
Set of the names of built-in modules.
Call pyc.py in order to compile your scripts.
In general use this method is not supposed to be called directly. It is recommended that you use create_asm() instead.
Parameters: |
|
---|
Check the compilability of the modules required by the scripts you specified.
Parameters: | dirs_of_modules (list) – Specify the paths of the directories where the modules your scripts require exist, or this method searches for pure-Python modules in the IronPython standard library, and the CPython site-packages directory. |
---|
Set of the paths to required and compilable modules.
Compile your scripts into a .NET assembly, using pyc.py.
Parameters: |
|
---|
Compile your scripts into a DLL file (.NET library assembly) using pyc.py.
Parameters: |
|
---|
Warning
This method is deprecated, and will be removed in the next major version. Please use create_asm() instead.
Compile your scripts into an EXE file (.NET process assembly) using pyc.py.
Parameters: |
|
---|
Warning
This method is deprecated, and will be removed in the next major version. Please use create_asm() instead.
The path to the main output assembly.
Standard output from pyc.py.
Set of the names of required but uncompilable modules.
Copy the IronPython DLL files into the directory specified.
Parameters: |
|
---|
New in version 0.9.0.
Changed in version 0.10.0: This function now uses ironpycompiler.detect.auto_detect() instead of ironpycompiler.detect.detect_ipy().
This module contains execptions of IronPyCompiler.
This is the base class for exceptions in this module.
This exception will be raised when IronPython cannot be found in your system.
Parameters: |
|
---|
Changed in version 0.9.0: The argument executable became optional, and the argument msg was added.