Is it simple to make a version to 26.3 with numpy 2.3.5?

Open
#102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
numpy, python
Domain
build-system

Research direction

Start by checking the LibPack version configuration and package definitions for NumPy 3.5.5, then compare them with LibPack 3.2 and its NumPy 2.2.5 entry. Confirm that NumPy 2.3.5 is compatible with x86-64-v1 and can be built or packaged for the 26.3 version. Done means the 26.3 LibPack uses NumPy 2.3.5 and remains usable on the stated hardware.

Written by the indexing model from the issue text.

Description

There is a problem with numpy 2.4.0 and higher to old x86-64-v1 hardware.
https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels

Numpy 2.4+ runs only with v2 and higher. V2 needs SSE 3.0, 4.1 and 4.2 and some more.
https://numpy.org/devdocs/release/2.4.0-notes.html

https://github.com/FreeCAD/FreeCAD/issues/33393
https://github.com/FreeCAD/FreeCAD/issues/33425

So for this hardware, numpy in freecad runs only with 1.1.x with old numpy 1.26.4.
Older devs to 26.3 are maintained with numpy 1.26.4 and 2.x lower than 2.4.

But numpy 2.3.5 should be compatible with x86-64-v1-hardware here.

In libpack 3.5.5 is numpy 2.5.1. 2.5.4 is here the actual version at numpy.
Libpack 3.2 was with numpy 2.2.5.

Dominant language
Python
Stars
60
Forks
36
Avg merge
3m
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FreeCAD/FreeCAD-LibPack

All issues in FreeCAD/FreeCAD-LibPack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.