Skip to content
Snippets Groups Projects
Commit a5b16092 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Add Python 3 build instructions for Windows

parent e526498d
No related branches found
No related tags found
No related merge requests found
...@@ -12,13 +12,28 @@ migration strategy for Mantid. ...@@ -12,13 +12,28 @@ migration strategy for Mantid.
Building Against Python 3 Building Against Python 3
######################### #########################
This is currently only possible on a Linux system with a pre-installed version of python 3 and you will need to have This is currently possible on Ubuntu or Windows.
the latest version of the `mantid-developer` package installed. Once installed run cmake as standard but with the additional option ``-DPYTHON_EXECUTABLE=/usr/bin/python3``. Please note that Please note that reconfiguring an existing Python 2 build is not supported - a build in a fresh build directory is required.
reconfiguring an existing Python 2 build is not supported - a build in a fresh build directory is required.
Ubuntu
^^^^^^
Install the latest version of the `mantid-developer` package. Once installed run cmake as standard but with the additional option ``-DPYTHON_EXECUTABLE=/usr/bin/python3``.
.. warning:: .. warning::
Do not install python packages via ``pip``. Install packages only from the system repositories. Do not install python packages via ``pip``. Install packages only from the system repositories.
Windows
^^^^^^^
All of the required packages are in the third-party bundle that will be fetched for you.
To build from the command line run cmake as standard but with the additional option ``-DWITH_PYTHON3=ON``.
To build from the GUI ensure the previous cache has been deleted, set the source and build directories as usual
but before clicking configure click "Add Entry" and add an entry with the name ``WITH_PYTHON3`` of type ``BOOL``
and ensure the Value is checked. Now proceed to configure and generate as usual.
Supporting Python 2 and 3 Supporting Python 2 and 3
######################### #########################
......
...@@ -47,7 +47,7 @@ Guides ...@@ -47,7 +47,7 @@ Guides
Configure a doxygen build locally. Configure a doxygen build locally.
:doc:`Python3` :doc:`Python3`
Building with Python 3 (Linux only). Building with Python 3 (Ubuntu/Windows).
`C++ Introduction <https://www.mantidproject.org/New_Starter_C%2B%2B_introduction>`_ `C++ Introduction <https://www.mantidproject.org/New_Starter_C%2B%2B_introduction>`_
Exercises for learning C++. Exercises for learning C++.
...@@ -207,7 +207,7 @@ GUI Development ...@@ -207,7 +207,7 @@ GUI Development
:doc:`ISISReflectometryInterface` :doc:`ISISReflectometryInterface`
An example of a complex C++ interface that uses MVP. An example of a complex C++ interface that uses MVP.
========= =========
Workbench Workbench
========= =========
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment