Skip to content

Commit 59c6d01

Browse files
committed
* Upgrade presets for FFmpeg 7.1, CPython 3.13.0, LLVM 19.1.2
1 parent e78462c commit 59c6d01

File tree

112 files changed

+2865
-3654
lines changed

Some content is hidden

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

112 files changed

+2865
-3654
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Build FFmpeg with zimg to enable zscale filter ([pull #1481](https://github.com/bytedeco/javacpp-presets/pull/1481))
1010
* Enable PulseAudio support for FFmpeg on Linux ([pull #1472](https://github.com/bytedeco/javacpp-presets/pull/1472))
1111
* Virtualize `btCollisionWorld`, `btOverlapFilterCallback`, `btOverlapCallback` from Bullet Physics SDK ([pull #1475](https://github.com/bytedeco/javacpp-presets/pull/1475))
12-
* Upgrade presets for OpenCV 4.10.0, FFmpeg 7.0.2, Spinnaker 4.0.0.116 ([pull #1524](https://github.com/bytedeco/javacpp-presets/pull/1524)), DNNL 3.5.3, OpenBLAS 0.3.28, CMINPACK 1.3.9, GSL 2.8, CPython 3.12.7, NumPy 2.1.2, SciPy 1.14.1, LLVM 18.1.8, LibRaw 0.21.2 ([pull #1520](https://github.com/bytedeco/javacpp-presets/pull/1520)), Tesseract 5.4.1, libffi 3.4.6, CUDA 12.6.0, cuDNN 9.3.0, NCCL 2.22.3, nvCOMP 4.0.0, OpenCL 3.0.16, NVIDIA Video Codec SDK 12.2.72, PyTorch 2.4.0 ([pull #1466](https://github.com/bytedeco/javacpp-presets/pull/1466)), SentencePiece 0.2.0, TensorFlow Lite 2.17.0, TensorRT 10.3.0.26, Triton Inference Server 2.48.0, ONNX 1.17.0, ONNX Runtime 1.19.2, TVM 0.17.0, and their dependencies
12+
* Upgrade presets for OpenCV 4.10.0, FFmpeg 7.1, Spinnaker 4.0.0.116 ([pull #1524](https://github.com/bytedeco/javacpp-presets/pull/1524)), DNNL 3.5.3, OpenBLAS 0.3.28, CMINPACK 1.3.9, GSL 2.8, CPython 3.13.0, NumPy 2.1.2, SciPy 1.14.1, LLVM 19.1.2, LibRaw 0.21.2 ([pull #1520](https://github.com/bytedeco/javacpp-presets/pull/1520)), Tesseract 5.4.1, libffi 3.4.6, CUDA 12.6.0, cuDNN 9.3.0, NCCL 2.22.3, nvCOMP 4.0.0, OpenCL 3.0.16, NVIDIA Video Codec SDK 12.2.72, PyTorch 2.4.0 ([pull #1466](https://github.com/bytedeco/javacpp-presets/pull/1466)), SentencePiece 0.2.0, TensorFlow Lite 2.17.0, TensorRT 10.3.0.26, Triton Inference Server 2.48.0, ONNX 1.17.0, ONNX Runtime 1.19.2, TVM 0.17.0, and their dependencies
1313

1414
### January 29, 2024 version 1.5.10
1515
* Introduce `macosx-arm64` builds for PyTorch ([pull #1463](https://github.com/bytedeco/javacpp-presets/pull/1463))

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ The JavaCPP Presets depend on Maven, a powerful build system for Java, so before
180180
Each child module in turn relies by default on the included [`cppbuild.sh` scripts](#the-cppbuildsh-scripts), explained below, to install its corresponding native libraries in the `cppbuild` subdirectory. To use native libraries already installed somewhere else on the system, other installation directories than `cppbuild` can also be specified either in the `pom.xml` files or in the `.java` configuration files. The following versions are supported:
181181

182182
* OpenCV 4.10.x https://opencv.org/releases/
183-
* FFmpeg 7.0.x http://ffmpeg.org/download.html
183+
* FFmpeg 7.1.x http://ffmpeg.org/download.html
184184
* FlyCapture 2.13.x https://www.flir.com/products/flycapture-sdk
185185
* Spinnaker 4.0.x https://www.flir.com/products/spinnaker-sdk
186186
* libdc1394 2.2.6 http://sourceforge.net/projects/libdc1394/files/
@@ -204,11 +204,11 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip
204204
* CMINPACK 1.3.9 https://github.com/devernay/cminpack
205205
* FFTW 3.3.10 http://www.fftw.org/download.html
206206
* GSL 2.8 http://www.gnu.org/software/gsl/#downloading
207-
* CPython 3.12.x https://www.python.org/downloads/
207+
* CPython 3.13.x https://www.python.org/downloads/
208208
* NumPy 2.1.x https://github.com/numpy/numpy
209209
* SciPy 1.14.x https://github.com/scipy/scipy
210210
* Gym 0.26.x https://github.com/openai/gym
211-
* LLVM 18.1.x http://llvm.org/releases/download.html
211+
* LLVM 19.1.x http://llvm.org/releases/download.html
212212
* libffi 3.4.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

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.12.7 https://www.python.org/
17+
* CPython 3.13.0 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.12.7-1.5.11-SNAPSHOT</version>
57+
<version>3.13.0-1.5.11-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.3.2
11-
CPYTHON_VERSION=3.12.7
11+
CPYTHON_VERSION=3.13.0
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.12.7-${project.parent.version}</version>
15+
<version>3.13.0-${project.parent.version}</version>
1616
<name>JavaCPP Presets Platform for CPython</name>
1717

1818
<properties>

cpython/pom.xml

Lines changed: 2 additions & 2 deletions
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.12.7-${project.parent.version}</version>
14+
<version>3.13.0-${project.parent.version}</version>
1515
<name>JavaCPP Presets for CPython</name>
1616

1717
<dependencies>
@@ -35,7 +35,7 @@
3535
<configuration>
3636
<includePaths>
3737
<includePath>${basedir}/cppbuild/${javacpp.platform}/include/</includePath>
38-
<includePath>${basedir}/cppbuild/${javacpp.platform}/include/python3.12/</includePath>
38+
<includePath>${basedir}/cppbuild/${javacpp.platform}/include/python3.13/</includePath>
3939
</includePaths>
4040
<linkPaths>
4141
<linkPath>${basedir}/cppbuild/${javacpp.platform}/lib/</linkPath>

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.12.7-1.5.11-SNAPSHOT</version>
15+
<version>3.13.0-1.5.11-SNAPSHOT</version>
1616
</dependency>
1717
</dependencies>
1818
<build>

cpython/src/gen/java/org/bytedeco/cpython/Innerfunc_BytePointer_long_Pointer.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

cpython/src/gen/java/org/bytedeco/cpython/Innerfunc_String_long_Pointer.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

cpython/src/gen/java/org/bytedeco/cpython/PerfMapState.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import static org.bytedeco.cpython.global.python.*;
1212

1313

14-
// #if !defined(Py_LIMITED_API)
1514
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
1615
public class PerfMapState extends Pointer {
1716
static { Loader.load(); }

cpython/src/gen/java/org/bytedeco/cpython/Predicate_PyObject.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

cpython/src/gen/java/org/bytedeco/cpython/PyASCIIObject.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import static org.bytedeco.cpython.global.python.*;
1212

1313

14+
1415
/* --- Unicode Type ------------------------------------------------------- */
1516

1617
/* ASCII-only strings created through PyUnicode_New use the PyASCIIObject

cpython/src/gen/java/org/bytedeco/cpython/_PyCFunctionFast.java renamed to cpython/src/gen/java/org/bytedeco/cpython/PyCFunctionFast.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
import static org.bytedeco.cpython.global.python.*;
1212

1313
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
14-
public class _PyCFunctionFast extends FunctionPointer {
14+
public class PyCFunctionFast extends FunctionPointer {
1515
static { Loader.load(); }
1616
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
17-
public _PyCFunctionFast(Pointer p) { super(p); }
18-
protected _PyCFunctionFast() { allocate(); }
17+
public PyCFunctionFast(Pointer p) { super(p); }
18+
protected PyCFunctionFast() { allocate(); }
1919
private native void allocate();
2020
public native PyObject call(PyObject arg0, @Cast("PyObject*const*") PointerPointer arg1, @Cast("Py_ssize_t") long arg2);
2121
}

cpython/src/gen/java/org/bytedeco/cpython/_PyCFunctionFastWithKeywords.java renamed to cpython/src/gen/java/org/bytedeco/cpython/PyCFunctionFastWithKeywords.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
import static org.bytedeco.cpython.global.python.*;
1212

1313
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
14-
public class _PyCFunctionFastWithKeywords extends FunctionPointer {
14+
public class PyCFunctionFastWithKeywords extends FunctionPointer {
1515
static { Loader.load(); }
1616
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
17-
public _PyCFunctionFastWithKeywords(Pointer p) { super(p); }
18-
protected _PyCFunctionFastWithKeywords() { allocate(); }
17+
public PyCFunctionFastWithKeywords(Pointer p) { super(p); }
18+
protected PyCFunctionFastWithKeywords() { allocate(); }
1919
private native void allocate();
2020
public native PyObject call(PyObject arg0,
21-
@Cast("PyObject*const*") PointerPointer arg1, @Cast("Py_ssize_t") long arg2,
22-
PyObject arg3);
21+
@Cast("PyObject*const*") PointerPointer arg1, @Cast("Py_ssize_t") long arg2,
22+
PyObject arg3);
2323
}

cpython/src/gen/java/org/bytedeco/cpython/PyCodeObject.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public class PyCodeObject extends Pointer {
8383
public native PyObject co_qualname(); public native PyCodeObject co_qualname(PyObject setter); /* unicode (qualname, for reference) */
8484
public native PyObject co_linetable(); public native PyCodeObject co_linetable(PyObject setter); /* bytes object that holds location info */
8585
public native PyObject co_weakreflist(); public native PyCodeObject co_weakreflist(PyObject setter); /* to support weakrefs to code objects */
86+
public native _PyExecutorArray co_executors(); public native PyCodeObject co_executors(_PyExecutorArray setter); /* executors from optimizer */
8687
public native _PyCoCached _co_cached(); public native PyCodeObject _co_cached(_PyCoCached setter); /* cached co_* attributes */
87-
public native @Cast("uint64_t") long _co_instrumentation_version(); public native PyCodeObject _co_instrumentation_version(long setter); /* current instrumentation version */
88+
public native @Cast("uintptr_t") long _co_instrumentation_version(); public native PyCodeObject _co_instrumentation_version(long setter); /* current instrumentation version */
8889
public native _PyCoMonitoringData _co_monitoring(); public native PyCodeObject _co_monitoring(_PyCoMonitoringData setter); /* Monitoring data */
8990
public native int _co_firsttraceable(); public native PyCodeObject _co_firsttraceable(int setter); /* index of first traceable instruction */
9091
/* Scratch space for extra data relating to the code object. \

cpython/src/gen/java/org/bytedeco/cpython/PyConfig.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public class PyConfig extends Pointer {
8080
public native int safe_path(); public native PyConfig safe_path(int setter);
8181
public native int int_max_str_digits(); public native PyConfig int_max_str_digits(int setter);
8282

83+
public native int cpu_count(); public native PyConfig cpu_count(int setter);
84+
// #ifdef Py_GIL_DISABLED
85+
// #endif
86+
8387
/* --- Path configuration inputs ------------ */
8488
public native int pathconfig_warnings(); public native PyConfig pathconfig_warnings(int setter);
8589
public native @Cast("wchar_t*") Pointer program_name(); public native PyConfig program_name(Pointer setter);
@@ -104,6 +108,9 @@ public class PyConfig extends Pointer {
104108
public native @Cast("wchar_t*") Pointer run_module(); public native PyConfig run_module(Pointer setter);
105109
public native @Cast("wchar_t*") Pointer run_filename(); public native PyConfig run_filename(Pointer setter);
106110

111+
/* --- Set by Py_Main() -------------------------- */
112+
public native @Cast("wchar_t*") Pointer sys_path_0(); public native PyConfig sys_path_0(Pointer setter);
113+
107114
/* --- Private fields ---------------------------- */
108115

109116
// Install importlib? If equals to 0, importlib is not initialized at all.
@@ -115,4 +122,10 @@ public class PyConfig extends Pointer {
115122

116123
// If non-zero, we believe we're running from a source tree.
117124
public native int _is_python_build(); public native PyConfig _is_python_build(int setter);
125+
126+
// #ifdef Py_STATS
127+
// #endif
128+
129+
// #ifdef Py_DEBUG
130+
// #endif
118131
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Targeted by JavaCPP version 1.5.11-SNAPSHOT: DO NOT EDIT THIS FILE
2+
3+
package org.bytedeco.cpython;
4+
5+
import java.nio.*;
6+
import org.bytedeco.javacpp.*;
7+
import org.bytedeco.javacpp.annotation.*;
8+
9+
import static org.bytedeco.javacpp.presets.javacpp.*;
10+
11+
import static org.bytedeco.cpython.global.python.*;
12+
13+
14+
15+
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
16+
public class PyFrameLocalsProxyObject extends Pointer {
17+
static { Loader.load(); }
18+
/** Default native constructor. */
19+
public PyFrameLocalsProxyObject() { super((Pointer)null); allocate(); }
20+
/** Native array allocator. Access with {@link Pointer#position(long)}. */
21+
public PyFrameLocalsProxyObject(long size) { super((Pointer)null); allocateArray(size); }
22+
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
23+
public PyFrameLocalsProxyObject(Pointer p) { super(p); }
24+
private native void allocate();
25+
private native void allocateArray(long size);
26+
@Override public PyFrameLocalsProxyObject position(long position) {
27+
return (PyFrameLocalsProxyObject)super.position(position);
28+
}
29+
@Override public PyFrameLocalsProxyObject getPointer(long i) {
30+
return new PyFrameLocalsProxyObject((Pointer)this).offsetAddress(i);
31+
}
32+
33+
public native @ByRef PyObject ob_base(); public native PyFrameLocalsProxyObject ob_base(PyObject setter);
34+
public native PyFrameObject frame(); public native PyFrameLocalsProxyObject frame(PyFrameObject setter);
35+
}

cpython/src/gen/java/org/bytedeco/cpython/PyFutureFeatures.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

cpython/src/gen/java/org/bytedeco/cpython/PyHash_FuncDef.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
import static org.bytedeco.cpython.global.python.*;
1212

1313

14-
// #ifdef Py_DEBUG
15-
// #endif
16-
1714

1815
/* hash function definition */
1916
@Properties(inherit = org.bytedeco.cpython.presets.python.class)

cpython/src/gen/java/org/bytedeco/cpython/PyModuleDef.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
// #endif
1414

15+
// #if !defined(Py_LIMITED_API) && defined(Py_GIL_DISABLED)
16+
// #endif
17+
1518
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
1619
public class PyModuleDef extends Pointer {
1720
static { Loader.load(); }

cpython/src/gen/java/org/bytedeco/cpython/PyModuleDef_Base.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ It is set by PyModuleDef_Init(). */
5454
/* A copy of the module's __dict__ after the first time it was loaded.
5555
This is only set/used for legacy modules that do not support
5656
multiple initializations.
57-
It is set by _PyImport_FixupExtensionObject(). */
57+
It is set by fix_up_extension() in import.c. */
5858
public native PyObject m_copy(); public native PyModuleDef_Base m_copy(PyObject setter);
5959
}

cpython/src/gen/java/org/bytedeco/cpython/PyNumberMethods.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
// #endif /* !Py_BUILD_CORE */
1515

16+
1617
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
1718
public class PyNumberMethods extends Pointer {
1819
static { Loader.load(); }

cpython/src/gen/java/org/bytedeco/cpython/xid_newobjectfunc.java renamed to cpython/src/gen/java/org/bytedeco/cpython/PyRefTracer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313

1414
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
15-
public class xid_newobjectfunc extends FunctionPointer {
15+
public class PyRefTracer extends FunctionPointer {
1616
static { Loader.load(); }
1717
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
18-
public xid_newobjectfunc(Pointer p) { super(p); }
19-
protected xid_newobjectfunc() { allocate(); }
18+
public PyRefTracer(Pointer p) { super(p); }
19+
protected PyRefTracer() { allocate(); }
2020
private native void allocate();
21-
public native PyObject call(_PyCrossInterpreterData arg0);
21+
public native int call(PyObject arg0, @Cast("PyRefTracerEvent") int event, Pointer arg2);
2222
}

cpython/src/gen/java/org/bytedeco/cpython/PySliceObject.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import static org.bytedeco.cpython.global.python.*;
1212

13+
// #endif
1314

1415
/* Slice object interface */
1516

0 commit comments

Comments
 (0)