diff options
Diffstat (limited to 'Modules/FindPython2.cmake')
-rw-r--r-- | Modules/FindPython2.cmake | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake index def6f3c..84c0c73 100644 --- a/Modules/FindPython2.cmake +++ b/Modules/FindPython2.cmake @@ -86,6 +86,7 @@ This module will set the following variables in your project * Anaconda * Canopy * IronPython + * PyPy ``Python2_STDLIB`` Standard platform independent installation directory. @@ -117,6 +118,8 @@ This module will set the following variables in your project ``Python2_COMPILER_ID`` A short string unique to the compiler. Possible values include: * IronPython +``Python2_DOTNET_LAUNCHER`` + The ``.Net`` interpreter. Only used by ``IronPython`` implementation. ``Python2_Development_FOUND`` System has the Python 2 development artifacts. ``Python2_Development.Module_FOUND`` @@ -139,6 +142,8 @@ This module will set the following variables in your project Python 2 minor version. ``Python2_VERSION_PATCH`` Python 2 patch version. +``Python2_PyPy_VERSION`` + Python 2 PyPy version. ``Python2_NumPy_FOUND`` System has the NumPy. ``Python2_NumPy_INCLUDE_DIRS`` @@ -228,8 +233,14 @@ Hints * ``IronPython``: This implementation use the ``CSharp`` language for ``.NET Framework`` on top of the `Dynamic Language Runtime` (``DLR``). See `IronPython <http://ironpython.net>`_. + * ``PyPy``: This implementation use ``RPython`` language and + ``RPython translation toolchain`` to produce the python interpreter. + See `PyPy <https://www.pypy.org>`_. - The default value is the list: ``CPython``, ``IronPython``. + The default value is: + + * Windows platform: ``CPython``, ``IronPython`` + * Other platforms: ``CPython`` .. note:: @@ -239,6 +250,12 @@ Hints ``Python2_FIND_STRATEGY=LOCATION``, each location will be search first for ``IronPython`` and second for ``CPython``. + .. note:: + + When ``IronPython`` is specified, on platforms other than ``Windows``, the + ``.Net`` interpreter (i.e. ``mono`` command) is expected to be available + through the ``PATH`` variable. + Artifacts Specification ^^^^^^^^^^^^^^^^^^^^^^^ @@ -251,6 +268,9 @@ setting the following variables: ``Python2_COMPILER`` The path to the compiler. +``Python2_DOTNET_LAUNCHER`` + The ``.Net`` interpreter. Only used by ``IronPython`` implementation. + ``Python2_LIBRARY`` The path to the library. It will be used to compute the variables ``Python2_LIBRARIES``, ``Python2_LIBRAY_DIRS`` and |