Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / SPNS-29988-numpy-1.22.patch
1 diff -Naur numpy-1.22.2_ref/setup.py numpy-1.22.2_dev/setup.py
2 --- numpy-1.22.2_ref/setup.py   2022-09-06 12:16:24.000000000 +0200
3 +++ numpy-1.22.2_dev/setup.py   2022-09-06 14:20:07.476055406 +0200
4 @@ -46,7 +46,7 @@
5  # Needed for backwards code compatibility below and in some CI scripts.
6  # The version components are changed from ints to strings, but only VERSION
7  # seems to matter outside of this module and it was already a str.
8 -FULLVERSION = versioneer.get_version()
9 +FULLVERSION = '1.22.2'
10  
11  # Capture the version string:
12  # 1.22.0.dev0+ ... -> ISRELEASED == False, VERSION == 1.22.0
13 --- numpy-1.22.2-ref/versioneer.py      2022-09-06 12:16:20.000000000 +0200
14 +++ numpy-1.22.2-dev/versioneer.py      2022-12-15 15:34:37.857751459 +0100
15 @@ -1019,7 +1019,7 @@
16      # no suitable tags, so version is "0+unknown", but full hex is still there
17      if verbose:
18          print("no suitable tags, using unknown + full revision id")
19 -    return {"version": "0+unknown",
20 +    return {"version": "1.22.2",
21              "full-revisionid": keywords["full"].strip(),
22              "dirty": False, "error": "no suitable tags", "date": None}
23  
24 @@ -1470,7 +1470,7 @@
25      if verbose:
26          print("unable to compute version")
27  
28 -    return {"version": "0+unknown", "full-revisionid": None,
29 +    return {"version": "1.22.2", "full-revisionid": None,
30              "dirty": None, "error": "unable to compute version",
31              "date": None}
32