Python 3/en

The port of FreeCAD to Python 3 support is currently underway and progress is being tracked in this forum thread. The master branch of FreeCAD is already usable with python3. Tests are passing, but there are still many little incompatibilities. TESTERS WANTED!

This document is a placeholder for various platforms' build instructions and a checklist to monitor progress.

Ubuntu
The first step in building FreeCAD for Python 3 is ensuring you can build normally. Tip: It's also helpful to have a cmake GUI tool like cmake-qt-gui or cmake-curses-gui.

The following instructions are adapted from a post by looo in the Python 3 porting thread: Note: tested only with linux/ubuntu.

Download the current master of FreeCAD git clone https://github.com/FreeCAD/FreeCAD

If python3 is your default python then there shouldn't be much to do. If not I think the easiest is to do: Set the python relevant cmake variables with cmake-gui which are:

Pivy
python3 builds for freecad are available with this ppa

Pysidse
PySide for python3.5 isn't officially available, but I think ubuntu provides a build.

Test builds on anaconda (linux64)
and follow the instructions

once miniconda is installed we have to configure conda to have access to the freecad-builds:

now we create a new enviroment and install freecad

this will download all the necessary packages. When done activate the enviroment and start FreeCAD

the first time you launch freecad, matplotlib loads some modules, and therefore FreeCAD will need some time to show up.

Conda
Install conda-build:

Add channels:

Clone the current Python 3 port of FreeCAD

Clone the conda-recipes for FreeCAD

- go to FreeCAD_Conda/.FreeCAD_debug - set the variables on top of the script (the path to FreeCAD, and if you want to build with calling cmake)

(the dirty flag isn't necessary if you build the first time. If it isn't set conda does a full build all the time. The python option is not necessary if you have installed python3.6 miniconda version. But then you have to set this flag to build with python2.7....)

Links

 * Follow latest Pyside developments:
 * Progress Notes: https://wiki.qt.io/PySide2#Pyside_Development_Progress_Notes
 * Git commits: http://code.qt.io/cgit/pyside/pyside.git/log/