LibPack for Windows "Python packages"

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: LibPack for Windows "Python packages"

Post by uwestoehr »

wmayer wrote: Fri Dec 11, 2020 3:11 pm git commit be11a92f4 improves the handling in case the Plot add-on is not installed.
Many thanks, it works fine.
By the way, the shaft wizard is a cool feature, too bad that I did not discover it earlier.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack for Windows "Python packages"

Post by sgrogan »

I think I have a working debug numpy 0.19.4?
https://github.com/sgrogan/FreeCAD/releases/tag/numpy_d

I had to remove numpy from the Libpack site-packages directory, then from a powershell window opened in the Libpack bin directory

Code: Select all

./python -m pip install cython
./python_d.exe -m pip install --no-use-pep517 --no-binary :all: --global-option build --global-option --debug numpy
Replace the numpy in your build/install and it seems to work.

I'll next see if I can get the release and debug to work in the same Libpack.
EDIT: numpy.7z at the above link has release and debug numpy 0.19.4, they seem to peacefully coexist.
"fight the good fight"
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: LibPack for Windows "Python packages"

Post by apeltauer »

apeltauer wrote: Fri Dec 11, 2020 10:43 am Builded netgen against OCC75.
https://github.com/apeltauer/FreeCAD/re ... n_occ75.7z
https://github.com/apeltauer/FreeCAD/re ... pdbs_75.7z

Can someone test the netgen build?
uwestoehr wrote: Fri Dec 11, 2020 12:19 pm ping...
Have you tried to use the new netgen build? Can i merge the netgen stuff to current libpack?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: LibPack for Windows "Python packages"

Post by uwestoehr »

apeltauer wrote: Thu Jan 07, 2021 2:47 pm Have you tried to use the new netgen build?
Yes, as I reported, it works, if one fixes a CMake issue with backslashes:
https://forum.freecadweb.org/viewtopic. ... 90#p456690
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: LibPack for Windows "Python packages"

Post by apeltauer »

uwestoehr wrote: Thu Jan 07, 2021 7:31 pm ....
Perfect, thanks for your reply.
I have updated the libpack...
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: LibPack for Windows "Python packages"

Post by kisolre »

apeltauer wrote: Fri Jan 08, 2021 7:36 am I have updated the libpack...
Is it possible to update the release message with the date of the last libpack update? Also if I just unpack over the old 12.4.2 libpack should I run CMake configure/generate or building the previous solution will just work?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: LibPack for Windows "Python packages"

Post by uwestoehr »

kisolre wrote: Fri Jan 08, 2021 3:47 pm Also if I just unpack over the old 12.4.2 libpack should I run CMake configure/generate or building the previous solution will just work?
I tried this and it is not working. You must unpack the libpack to its own folder. Then you must also recompile the whole FreeCAD from scratch, meaning to delete the CMake cache and set up everything (path etc.) new. At first I tried to avoid this and just adapted the paths in CMake to the new folder of the Libpack but I got compilation errors.

So in effect I followed this Wiki page step by step (I already changed the Wiki page for the new Libpack): https://wiki.freecadweb.org/Compile_on_Windows
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: LibPack for Windows "Python packages"

Post by uwestoehr »

apeltauer wrote: Fri Jan 08, 2021 7:36 am I have updated the libpack...
many thanks! (So the CMake fix is included?)

Can you please make an announcement like you did in this thread: https://forum.freecadweb.org/viewtopic.php?f=4&t=42945
I suggest to open a new thread for the announcement since the existing one is hard to read for newbies and one is only interested on the current LibPack not the past ones and their issues. I would also pin this new thread and unpin the existing.

I guess chrisb can do the un/pinning, right?
chrisb wrote: .
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: LibPack for Windows "Python packages"

Post by chennes »

uwestoehr wrote: Fri Jan 08, 2021 5:45 pm I tried this and it is not working. You must unpack the libpack to its own folder.
I moved the old version of the libpack to a backup directory and put this new one in the exact same old path (since it's got the same version number). Visual Studio didn't have a problem with it and relinked without any problems.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: LibPack for Windows "Python packages"

Post by kisolre »

uwestoehr wrote: Fri Jan 08, 2021 5:45 pm I tried this and it is not working.
kisolre wrote: Fri Jan 08, 2021 3:47 pm if I just unpack over the old 12.4.2 libpack
chennes wrote: Fri Jan 08, 2021 6:03 pm since it's got the same version number
That is what I meant. I already use the 12.4.2 version and was wandering since it has changes but it is still 12.4.2 is this the way it is supposed to work - replace files in the already used 12.4.2 folder. Thanks for the replies.
Post Reply