Is there a quick intro on how to "build" FC from source for python3 ?
Porting to python3
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Porting to python3
Are these environment variables to be set? Or does it need to compile FreeCAD?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Porting to python3
python is a build and run dependency. Therefor you have to build freecad with a specific python version.chrisb wrote:Are these environment variables to be set? Or does it need to compile FreeCAD?
If you are not able to build FreeCAD there are some options to get builds:
windows:
- builds provided by sgrogan. Available on the github release page: https://github.com/FreeCAD/FreeCAD/releases
- install with conda
linux:
- install with conda
osx:
- conda: (waiting for this PR to be merged: https://github.com/conda-forge/staged-recipes/pull/5897)
Installation with conda is in principial the same for all 3 plattforms (64 bit only):
- Install miniconda (64bit /py36): https://conda.io/miniconda.html
Code: Select all
conda config --add channels conda-forge
conda config --add channels freecad
conda create -n freecad freecad
Re: Porting to python3
And what is the glibc version on conda? Could creating AppImage and uploading it to releases page be automated? On a bit unrelated note. Could Windows builds be automated (less work for @sgrogan)?
Re: Porting to python3
conda packages depent on the system glibc on linux. So not all distros will work, but most. I test on ubuntu 14.04 - 18.04 and centos 6.triplus wrote:And what is the glibc version on conda?
Is possible, but as long as delta updates are not working this doesn't make much sense (too big filesize).triplus wrote:Could creating AppImage and uploading it to releases page be automated?
Installing a conda-env directly and using
Code: Select all
conda update freecad
# conda update --all # update all packages
I am not sure a fully automated workflow is possible and makes sense. But my plan is to build weekly by increasing the build-number and pushing a PR. The rest is done by the ci's (circle for osx and linux, appveyor for windows)triplus wrote:On a bit unrelated note. Could Windows builds be automated (less work for @sgrogan)?
Re: Porting to python3
Hello looo,looo wrote:
I installed Freecad 0.18 PY3 QT5 via conda.
It works !
But, I don't know which is revision number:
Code: Select all
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Release
Python version: 3.6.5
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
Re: Porting to python3
yes I know this problem. Maybe @sgrogan knows whats wrong here. Maybe it's to due some patching? Is git necessary in build and run environment?Opus wrote:But, I don't know which is revision number:
sgrogan wrote:
Re: Porting to python3
To be honest it's working out without the mentioned feature being available. Sure. It would be great to have that in the future. But highly likely we aren't talking about a deal breaker.
I see. Adding the Conda instructions here would therefore make some sense?Installing a conda-env directly and using
https://www.freecadweb.org/wiki/Download
P.S. We could i guess be more aggressive and flip the Py3 flags on for Trusty builds. And let that propagate to AppImage. If we decide and do that Py3 related reports will for sure start to come after.