[waiting for a working pyside2] conda: python3.8 is coming

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
looo
Posts: 2951
Joined: Mon Nov 11, 2013 5:29 pm

[waiting for a working pyside2] conda: python3.8 is coming

Postby looo » Sun Nov 03, 2019 9:24 pm

As I just received the first PR's for python3.8 I thought it might be interesting for others to see the status of the freecad-related packages. I guess the migration won't introduce too much troubles and we will see a python3.8-freecad-build in early December.

- [x] netgen: https://github.com/conda-forge/netgen-feedstock/pull/25
- [x] ifcopenshell: https://github.com/conda-forge/ifcopens ... ock/pull/3
- [x] libredwg: https://github.com/conda-forge/libredwg ... ock/pull/6
- [x] pyside2: https://github.com/conda-forge/pyside2- ... ck/pull/55 # needs a rebuild
- [x] pivy: https://github.com/conda-forge/pivy-feedstock/pull/19
- [x] vtk: https://github.com/conda-forge/vtk-feedstock/pull/93
- [x] smesh: https://github.com/conda-forge/smesh-feedstock/pull/26
- [ ] freecad: https://github.com/conda-forge/freecad- ... ck/pull/30

more coming soon...
Last edited by looo on Sat Nov 09, 2019 9:21 am, edited 5 times in total.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
User avatar
Kunda1
Posts: 5927
Joined: Thu Jan 05, 2017 9:03 pm

Re: [WIP] conda: python3.8 is coming

Postby Kunda1 » Tue Nov 05, 2019 12:19 am

Thanks for the 'play by play'!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
looo
Posts: 2951
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] conda: python3.8 is coming

Postby looo » Fri Nov 08, 2019 5:33 pm

The PR's for freecad came faster than expected... :D Btw.: this will not yet affect the 0.19_pre packages which are used for dmg/appimage. Only the more official package from conda-forge will be build with py3.8 + py3.7. So we are able to do some testing before updating the 0.19_pre-feedstock.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
User avatar
sgrogan
Posts: 5469
Joined: Wed Oct 22, 2014 5:02 pm

Re: [WIP] conda: python3.8 is coming

Postby sgrogan » Fri Nov 08, 2019 5:44 pm

looo wrote:
Fri Nov 08, 2019 5:33 pm
The PR's for freecad came faster than expected... :D Btw.: this will not yet affect the 0.19_pre packages which are used for dmg/appimage. Only the more official package from conda-forge will be build with py3.8 + py3.7. So we are able to do some testing before updating the 0.19_pre-feedstock.
How to install?
You're amazing looo.
Noticed this as well, related to the enhancements idea: https://www.python.org/downloads/release/python-380/
looo
Posts: 2951
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] conda: python3.8 is coming

Postby looo » Fri Nov 08, 2019 6:40 pm

sgrogan wrote:
Fri Nov 08, 2019 5:44 pm
How to install?
You're amazing looo.
Noticed this as well, related to the enhancements idea: https://www.python.org/downloads/release/python-380/
FreeCAD itself is not done yet, some homework is necessary:

Code: Select all

In file included from ../src/Base/swigpyrun.cpp:41:0:
../src/Base/swigpyrun.inl: In function 'void Swig_python::cleanupSWIG_T(const char*)':
../src/Base/swigpyrun.inl:75:31: error: invalid use of incomplete type 'PyInterpreterState {aka struct _is}'
     PyObject *modules = interp->modules;
                               ^~
In file included from $PREFIX/include/python3.8/genobject.h:11:0,
                 from $PREFIX/include/python3.8/Python.h:121,
                 from ../src/Base/PyExport.h:42,
                 from ../src/Base/swigpyrun.cpp:25:
$PREFIX/include/python3.8/pystate.h:20:8: note: forward declaration of 'PyInterpreterState {aka struct _is}'
 struct _is;
        ^~~
In file included from ../src/Base/swigpyrun.cpp:41:0:
../src/Base/swigpyrun.inl:75:33: error: invalid use of incomplete type 'PyInterpreterState {aka struct _is}'
     PyObject *modules = interp->modules;
                                 ^~~~~~~
In file included from $PREFIX/include/python3.8/genobject.h:11:0,
                 from $PREFIX/include/python3.8/Python.h:121,
                 from ../src/Base/PyExport.h:42,
                 from ../src/Base/swigpyrun.cpp:25:
$PREFIX/include/python3.8/pystate.h:20:8: note: forward declaration of 'PyInterpreterState {aka struct _is}'
 struct _is;
        ^~~
[405/3032] Building CXX object src/Base/CMakeFiles/FreeCADBase.dir/Stream.cpp.o
[406/3032] Building CXX object src/Base/CMakeFiles/FreeCADBase.dir/RotationPyImp.cpp.o
In file included from ../src/Base/RotationPyImp.cpp:33:0:
src/Base/RotationPy.cpp:90:1: warning: missing initializer for member '_typeobject::tp_vectorcall' [-Wmissing-field-initializers]
 };
https://forum.freecadweb.org/viewtopic.php?t=38982
please help with my conda-packaging efforts: https://liberapay.com/looooo/