Skip to content

Commit 5422fa8

Browse files
committed
* Upgrade presets for CPython 3.13.5, NumPy 2.3.0, SciPy 1.15.3, libffi 3.5.1, Tesseract 5.5.1, PyTorch 2.7.1, ONNX 1.18.0, ONNX Runtime 1.22.0
1 parent cc89776 commit 5422fa8

File tree

979 files changed

+6526
-1473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

979 files changed

+6526
-1473
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Allow setting "org.bytedeco.openblas.load" system property to "none" ([issue #1203](https://github.com/bytedeco/javacpp-presets/issues/1203))
66
* Fix presets for the CUPTI module of CUDA on Windows ([pull #1576](https://github.com/bytedeco/javacpp-presets/pull/1576))
77
* Introduce `macosx-arm64` builds for ARPACK-NG, CMINPACK, FFTW, GSL, TensorFlow Lite, ONNX, ONNX Runtime ([issue #1069](https://github.com/bytedeco/javacpp-presets/issues/1069))
8-
* Upgrade presets for OpenCV 4.11.0, FFmpeg 7.1.1, DNNL 3.8.1 ([pull #1633](https://github.com/bytedeco/javacpp-presets/pull/1633)), OpenBLAS 0.3.29, CPython 3.13.3, NumPy 2.2.5, SciPy 1.15.2, LLVM 20.1.6, libffi 3.4.8, CUDA 12.9.1, cuDNN 9.10.2, NCCL 2.27.3, nvCOMP 4.2.0.11, NVIDIA Video Codec SDK 13.0.19, PyTorch 2.7.0, TensorFlow Lite 2.19.0, TensorRT 10.11.0.33, Triton Inference Server 2.58.0, ONNX Runtime 1.21.1, and their dependencies
8+
* Upgrade presets for OpenCV 4.11.0, FFmpeg 7.1.1, DNNL 3.8.1 ([pull #1633](https://github.com/bytedeco/javacpp-presets/pull/1633)), OpenBLAS 0.3.29, CPython 3.13.5, NumPy 2.3.0, SciPy 1.15.3, LLVM 20.1.6, libffi 3.5.1, Tesseract 5.5.1, CUDA 12.9.1, cuDNN 9.10.2, NCCL 2.27.3, nvCOMP 4.2.0.11, NVIDIA Video Codec SDK 13.0.19, PyTorch 2.7.1, TensorFlow Lite 2.19.0, TensorRT 10.11.0.33, Triton Inference Server 2.58.0, ONNX 1.18.0, ONNX Runtime 1.22.0, and their dependencies
99

1010
### November 16, 2024 version 1.5.11
1111
* Enable distributed package using Gloo in presets for PyTorch ([pull #1510](https://github.com/bytedeco/javacpp-presets/pull/1510))

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip
205205
* FFTW 3.3.10 http://www.fftw.org/download.html
206206
* GSL 2.8 http://www.gnu.org/software/gsl/#downloading
207207
* CPython 3.13.x https://www.python.org/downloads/
208-
* NumPy 2.2.x https://github.com/numpy/numpy
208+
* NumPy 2.3.x https://github.com/numpy/numpy
209209
* SciPy 1.15.x https://github.com/scipy/scipy
210210
* Gym 0.26.x https://github.com/openai/gym
211211
* LLVM 20.1.x http://llvm.org/releases/download.html
212-
* libffi 3.4.x https://github.com/libffi/libffi
212+
* libffi 3.5.x https://github.com/libffi/libffi
213213
* libpostal 1.1 https://github.com/openvenues/libpostal
214214
* LibRaw 0.21.x https://www.libraw.org/download
215215
* Leptonica 1.85.x http://www.leptonica.org/download.html
@@ -231,9 +231,9 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip
231231
* Triton Inference Server 2.58.x https://developer.nvidia.com/nvidia-triton-inference-server
232232
* The Arcade Learning Environment 0.8.x https://github.com/mgbellemare/Arcade-Learning-Environment
233233
* DepthAI 2.24.x https://github.com/luxonis/depthai-core
234-
* ONNX 1.17.x https://github.com/onnx/onnx
234+
* ONNX 1.18.x https://github.com/onnx/onnx
235235
* nGraph 0.26.0 https://github.com/NervanaSystems/ngraph
236-
* ONNX Runtime 1.21.x https://github.com/microsoft/onnxruntime
236+
* ONNX Runtime 1.22.x https://github.com/microsoft/onnxruntime
237237
* TVM 0.18.x https://github.com/apache/tvm
238238
* Bullet Physics SDK 3.25 https://pybullet.org
239239
* LiquidFun http://google.github.io/liquidfun/

cpython/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Introduction
1414
------------
1515
This directory contains the JavaCPP Presets module for:
1616

17-
* CPython 3.13.3 https://www.python.org/
17+
* CPython 3.13.5 https://www.python.org/
1818

1919
Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.
2020

@@ -54,7 +54,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic
5454
<dependency>
5555
<groupId>org.bytedeco</groupId>
5656
<artifactId>cpython-platform</artifactId>
57-
<version>3.13.3-1.5.12-SNAPSHOT</version>
57+
<version>3.13.5-1.5.12-SNAPSHOT</version>
5858
</dependency>
5959
</dependencies>
6060
<build>

cpython/cppbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [[ -z "$PLATFORM" ]]; then
88
fi
99

1010
OPENSSL=openssl-3.4.1
11-
CPYTHON_VERSION=3.13.3
11+
CPYTHON_VERSION=3.13.5
1212
download https://www.openssl.org/source/$OPENSSL.tar.gz $OPENSSL.tar.gz
1313
download https://www.python.org/ftp/python/$CPYTHON_VERSION/Python-$CPYTHON_VERSION.tgz Python-$CPYTHON_VERSION.tgz
1414

cpython/platform/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>cpython-platform</artifactId>
15-
<version>3.13.3-${project.parent.version}</version>
15+
<version>3.13.5-${project.parent.version}</version>
1616
<name>JavaCPP Presets Platform for CPython</name>
1717

1818
<properties>

cpython/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>org.bytedeco</groupId>
1313
<artifactId>cpython</artifactId>
14-
<version>3.13.3-${project.parent.version}</version>
14+
<version>3.13.5-${project.parent.version}</version>
1515
<name>JavaCPP Presets for CPython</name>
1616

1717
<dependencies>

cpython/samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<dependency>
1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>cpython-platform</artifactId>
15-
<version>3.13.3-1.5.12-SNAPSHOT</version>
15+
<version>3.13.5-1.5.12-SNAPSHOT</version>
1616
</dependency>
1717
</dependencies>
1818
<build>

cpython/src/gen/java/org/bytedeco/cpython/global/python.java

Lines changed: 68 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ There is also (independent) API version information in modsupport.h.
174174
/*--start constants--*/
175175
public static final int PY_MAJOR_VERSION = 3;
176176
public static final int PY_MINOR_VERSION = 13;
177-
public static final int PY_MICRO_VERSION = 3;
177+
public static final int PY_MICRO_VERSION = 5;
178178
public static final int PY_RELEASE_LEVEL = PY_RELEASE_LEVEL_FINAL;
179179
public static final int PY_RELEASE_SERIAL = 0;
180180

181181
/* Version as a string */
182-
public static final String PY_VERSION = "3.13.3";
182+
public static final String PY_VERSION = "3.13.5";
183183
/*--end constants--*/
184184

185185
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
@@ -454,6 +454,10 @@ There is also (independent) API version information in modsupport.h.
454454
*/
455455
/* #undef HAVE_DECL_TZNAME */
456456

457+
/* Define to 1 if you have the declaration of `UT_NAMESIZE', and to 0 if you
458+
don't. */
459+
public static final int HAVE_DECL_UT_NAMESIZE = 1;
460+
457461
/* Define to 1 if you have the device macros. */
458462
public static final int HAVE_DEVICE_MACROS = 1;
459463

@@ -717,6 +721,9 @@ There is also (independent) API version information in modsupport.h.
717721
/* Define to 1 if you have the `getlogin' function. */
718722
public static final int HAVE_GETLOGIN = 1;
719723

724+
/* Define to 1 if you have the `getlogin_r' function. */
725+
public static final int HAVE_GETLOGIN_R = 1;
726+
720727
/* Define to 1 if you have the `getnameinfo' function. */
721728
public static final int HAVE_GETNAMEINFO = 1;
722729

@@ -982,6 +989,9 @@ There is also (independent) API version information in modsupport.h.
982989
/* Define this if you have the makedev macro. */
983990
public static final int HAVE_MAKEDEV = 1;
984991

992+
/* Define if you have the 'MAXLOGNAME' constant. */
993+
/* #undef HAVE_MAXLOGNAME */
994+
985995
/* Define to 1 if you have the `mbrtowc' function. */
986996
public static final int HAVE_MBRTOWC = 1;
987997

@@ -1735,6 +1745,9 @@ There is also (independent) API version information in modsupport.h.
17351745
/* Define to 1 if you have the <utmp.h> header file. */
17361746
public static final int HAVE_UTMP_H = 1;
17371747

1748+
/* Define if you have the 'HAVE_UT_NAMESIZE' constant. */
1749+
public static final int HAVE_UT_NAMESIZE = 1;
1750+
17381751
/* Define to 1 if you have the `uuid_create' function. */
17391752
/* #undef HAVE_UUID_CREATE */
17401753

@@ -2738,6 +2751,14 @@ significant byte first (like Motorola and SPARC, unlike Intel). */
27382751
// # define _Py__has_builtin(x) 0
27392752
// #endif
27402753

2754+
// Preprocessor check for a compiler __attribute__. Always return 0
2755+
// if __has_attribute() macro is not defined.
2756+
// #ifdef __has_attribute
2757+
// # define _Py__has_attribute(x) __has_attribute(x)
2758+
// #else
2759+
// # define _Py__has_attribute(x) 0
2760+
// #endif
2761+
27412762
// _Py_TYPEOF(expr) gets the type of an expression.
27422763
//
27432764
// Example: _Py_TYPEOF(x) x_copy = (x);
@@ -2802,6 +2823,22 @@ significant byte first (like Motorola and SPARC, unlike Intel). */
28022823
// # define _SGI_MP_SOURCE
28032824
// #endif
28042825

2826+
2827+
// _Py_NONSTRING: The nonstring variable attribute specifies that an object or
2828+
// member declaration with type array of char, signed char, or unsigned char,
2829+
// or pointer to such a type is intended to store character arrays that do not
2830+
// necessarily contain a terminating NUL.
2831+
//
2832+
// Usage:
2833+
//
2834+
// char name [8] _Py_NONSTRING;
2835+
// #if _Py__has_attribute(nonstring)
2836+
// # define _Py_NONSTRING __attribute__((nonstring))
2837+
// #else
2838+
// # define _Py_NONSTRING
2839+
// #endif
2840+
2841+
28052842
// #endif /* Py_PYPORT_H */
28062843

28072844

@@ -4266,8 +4303,13 @@ where NULL (nil) is not suitable (since NULL often means 'error').
42664303
@NoException public static native int Py_IsNone(PyObject x);
42674304
// #define Py_IsNone(x) Py_Is((x), Py_None)
42684305

4269-
/* Macro for returning Py_None from a function */
4270-
// #define Py_RETURN_NONE return Py_None
4306+
/* Macro for returning Py_None from a function.
4307+
* Only treat Py_None as immortal in the limited C API 3.12 and newer. */
4308+
// #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030c0000
4309+
// # define Py_RETURN_NONE return Py_NewRef(Py_None)
4310+
// #else
4311+
// # define Py_RETURN_NONE return Py_None
4312+
// #endif
42714313

42724314
/*
42734315
Py_NotImplemented is a singleton used to signal that an operation is
@@ -7394,9 +7436,16 @@ Like PyUnicode_AsUTF8AndSize(), this also caches the UTF-8 representation
73947436
@NoException public static native int Py_IsFalse(PyObject x);
73957437
// #define Py_IsFalse(x) Py_Is((x), Py_False)
73967438

7397-
/* Macros for returning Py_True or Py_False, respectively */
7398-
// #define Py_RETURN_TRUE return Py_True
7399-
// #define Py_RETURN_FALSE return Py_False
7439+
/* Macros for returning Py_True or Py_False, respectively.
7440+
* Only treat Py_True and Py_False as immortal in the limited C API 3.12
7441+
* and newer. */
7442+
// #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030c0000
7443+
// # define Py_RETURN_TRUE return Py_NewRef(Py_True)
7444+
// # define Py_RETURN_FALSE return Py_NewRef(Py_False)
7445+
// #else
7446+
// # define Py_RETURN_TRUE return Py_True
7447+
// # define Py_RETURN_FALSE return Py_False
7448+
// #endif
74007449

74017450
/* Function to return a bool from a C long */
74027451
@NoException public static native PyObject PyBool_FromLong(long arg0);
@@ -11260,7 +11309,12 @@ Variant of PyObject_GetAttrString() which doesn't raise AttributeError
1126011309
Delete attribute named attr_name, for object o. Returns
1126111310
-1 on failure.
1126211311

11263-
This is the equivalent of the Python statement: del o.attr_name. */
11312+
This is the equivalent of the Python statement: del o.attr_name.
11313+
11314+
Implemented as a macro in the limited C API 3.12 and older. */
11315+
// #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030d0000
11316+
// # define PyObject_DelAttrString(O, A) PyObject_SetAttrString((O), (A), NULL)
11317+
// #endif
1126411318

1126511319

1126611320
/* Implemented elsewhere:
@@ -11269,7 +11323,12 @@ Variant of PyObject_GetAttrString() which doesn't raise AttributeError
1126911323

1127011324
Delete attribute named attr_name, for object o. Returns -1
1127111325
on failure. This is the equivalent of the Python
11272-
statement: del o.attr_name. */
11326+
statement: del o.attr_name.
11327+
11328+
Implemented as a macro in the limited C API 3.12 and older. */
11329+
// #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030d0000
11330+
// # define PyObject_DelAttr(O, A) PyObject_SetAttr((O), (A), NULL)
11331+
// #endif
1127311332

1127411333

1127511334
/* Implemented elsewhere:

cpython/src/main/java/org/bytedeco/cpython/presets/python.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void map(InfoMap infoMap) {
291291
"Py_False", "Py_True", "Py_RETURN_TRUE", "Py_RETURN_FALSE", "Py_RETURN_NAN",
292292
"PyObject_HEAD", "PyObject_VAR_HEAD", "Py_RETURN_NONE", "Py_RETURN_NOTIMPLEMENTED",
293293
"PyModuleDef_HEAD_INIT", "_Py_atomic_address", "__declspec",
294-
"PyException_HEAD", "_Py_NO_RETURN", "Py_Ellipsis",
294+
"PyException_HEAD", "_Py_NONSTRING", "_Py_NO_RETURN", "Py_Ellipsis",
295295
"PyObject_Length", "PySequence_Length", "PySequence_In", "PyMapping_Length",
296296
"PY_TIMEOUT_T", "_PyCoreConfig_INIT", "_PyMainInterpreterConfig_INIT", "_PyThreadState_Current",
297297
"Py_ALLOW_RECURSION", "Py_END_ALLOW_RECURSION", "NATIVE_TSS_KEY_T",

libffi/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Introduction
99
------------
1010
This directory contains the JavaCPP Presets module for:
1111

12-
* libffi 3.4.8 https://sourceware.org/libffi/
12+
* libffi 3.5.1 https://sourceware.org/libffi/
1313

1414
Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.
1515

@@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic
4646
<dependency>
4747
<groupId>org.bytedeco</groupId>
4848
<artifactId>libffi-platform</artifactId>
49-
<version>3.4.8-1.5.12-SNAPSHOT</version>
49+
<version>3.5.1-1.5.12-SNAPSHOT</version>
5050
</dependency>
5151
</dependencies>
5252
<build>

libffi/cppbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [[ -z "$PLATFORM" ]]; then
77
exit
88
fi
99

10-
LIBFFI_VERSION=3.4.8
10+
LIBFFI_VERSION=3.5.1
1111
download https://github.com/libffi/libffi/releases/download/v$LIBFFI_VERSION/libffi-$LIBFFI_VERSION.tar.gz libffi-$LIBFFI_VERSION.tar.gz
1212

1313
mkdir -p $PLATFORM

libffi/platform/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>libffi-platform</artifactId>
15-
<version>3.4.8-${project.parent.version}</version>
15+
<version>3.5.1-${project.parent.version}</version>
1616
<name>JavaCPP Presets Platform for libffi</name>
1717

1818
<properties>

libffi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>org.bytedeco</groupId>
1313
<artifactId>libffi</artifactId>
14-
<version>3.4.8-${project.parent.version}</version>
14+
<version>3.5.1-${project.parent.version}</version>
1515
<name>JavaCPP Presets for libffi</name>
1616

1717
<dependencies>

libffi/samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<dependency>
1313
<groupId>org.bytedeco</groupId>
1414
<artifactId>libffi-platform</artifactId>
15-
<version>3.4.8-1.5.12-SNAPSHOT</version>
15+
<version>3.5.1-1.5.12-SNAPSHOT</version>
1616
</dependency>
1717
</dependencies>
1818
<build>

libffi/src/gen/java/org/bytedeco/libffi/global/ffi.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ a copy of this software and associated documentation files (the
127127
// Parsed from ffi.h
128128

129129
/* -----------------------------------------------------------------*-C-*-
130-
libffi 3.4.8
131-
- Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024 Anthony Green
130+
libffi 3.5.1
131+
- Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024, 2025 Anthony Green
132132
- Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
133133
134134
Permission is hereby granted, free of charge, to any person
@@ -379,6 +379,24 @@ public static native void ffi_raw_call(ffi_cif cif,
379379
public static native @Deprecated void ffi_java_raw_to_ptrarray(ffi_cif cif, ffi_java_raw raw, @Cast("void**") @ByPtrPtr Pointer args);
380380
public static native @Cast("size_t") @Deprecated long ffi_java_raw_size(ffi_cif cif);
381381

382+
/* ---- Version API ------------------------------------------------------ */
383+
384+
public static final String FFI_VERSION_STRING = "3.5.1";
385+
public static final int FFI_VERSION_NUMBER = 30501;
386+
387+
// #ifndef LIBFFI_ASM
388+
/* Return a version string. */
389+
public static native @Cast("const char*") BytePointer ffi_get_version();
390+
391+
/* Return the version as an unsigned long value: (x * 10000 + y * 100 + z) */
392+
public static native @Cast("unsigned long") long ffi_get_version_number();
393+
// #endif
394+
395+
/* ---- Internals API ---------------------------------------------------- */
396+
397+
public static native @Cast("unsigned int") int ffi_get_default_abi();
398+
public static native @Cast("size_t") long ffi_get_closure_size();
399+
382400
/* ---- Definitions for closures ----------------------------------------- */
383401

384402
// #if FFI_CLOSURES

llvm/samples/llvm/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>org.bytedeco</groupId>
1919
<artifactId>libffi-platform</artifactId>
20-
<version>3.4.8-1.5.12-SNAPSHOT</version>
20+
<version>3.5.1-1.5.12-SNAPSHOT</version>
2121
</dependency>
2222
</dependencies>
2323
<repositories>

llvm/samples/polly/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>org.bytedeco</groupId>
2020
<artifactId>libffi-platform</artifactId>
21-
<version>3.4.8-1.5.12-SNAPSHOT</version>
21+
<version>3.5.1-1.5.12-SNAPSHOT</version>
2222
</dependency>
2323
<dependency>
2424
<groupId>org.bytedeco</groupId>

numpy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Introduction
99
------------
1010
This directory contains the JavaCPP Presets module for:
1111

12-
* NumPy 2.2.5 http://www.numpy.org/
12+
* NumPy 2.3.0 http://www.numpy.org/
1313

1414
Please refer to the parent README.md file for more detailed information about the JavaCPP Presets.
1515

@@ -48,7 +48,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic
4848
<dependency>
4949
<groupId>org.bytedeco</groupId>
5050
<artifactId>numpy-platform</artifactId>
51-
<version>2.2.5-1.5.12-SNAPSHOT</version>
51+
<version>2.3.0-1.5.12-SNAPSHOT</version>
5252
</dependency>
5353

5454
<!-- Additional dependencies to use bundled full version of MKL -->

numpy/cppbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [[ -z "$PLATFORM" ]]; then
77
exit
88
fi
99

10-
NUMPY_VERSION=2.2.5
10+
NUMPY_VERSION=2.3.0
1111
download https://github.com/numpy/numpy/releases/download/v$NUMPY_VERSION/numpy-$NUMPY_VERSION.tar.gz numpy-$NUMPY_VERSION.tar.gz
1212

1313
mkdir -p $PLATFORM

0 commit comments

Comments
 (0)