Package Details: python-ultralytics 8.3.237-1

Git Clone URL: https://aur.archlinux.org/python-ultralytics.git (read-only, click to copy)
Package Base: python-ultralytics
Description: Object detection, multi-object tracking, instance segmentation, pose estimation and image classification.
Upstream URL: https://github.com/ultralytics/ultralytics
Licenses: AGPL-3.0-or-later
Submitter: tapajos
Maintainer: envolution
Last Packager: envolution
Votes: 1
Popularity: 0.000023
First Submitted: 2024-03-11 12:24 (UTC)
Last Updated: 2025-12-13 02:29 (UTC)

Latest Comments

Ikidy commented on 2026-03-14 01:02 (UTC) (edited on 2026-03-14 01:04 (UTC) by Ikidy)

Package is out of date. For anybody needing to update, here is my temporary patch:

git clone https://aur.archlinux.org/python-ultralytics.git
cd python-ultralytics

Then copy the following to 0001-update-to-8.4.21.patch

From 6910081105e41ff446db144b753c81b0ae187efc Mon Sep 17 00:00:00 2001
From: ikeroy <isaacevansroy@gmail.com>
Date: Fri, 13 Mar 2026 19:23:11 -0500
Subject: [PATCH] update to 8.4.21

---
 .SRCINFO                      |  9 ++++++---
 PKGBUILD                      | 10 ++++++----
 setuptools-requirements.patch | 11 +++++++++++
 3 files changed, 23 insertions(+), 7 deletions(-)
 create mode 100644 setuptools-requirements.patch

diff --git a/.SRCINFO b/.SRCINFO
index 70bbddf..d5d150c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = python-ultralytics
    pkgdesc = Object detection, multi-object tracking, instance segmentation, pose estimation and image classification.
-   pkgver = 8.3.237
+   pkgver = 8.4.21
    pkgrel = 1
    url = https://github.com/ultralytics/ultralytics
    arch = any
@@ -9,6 +9,7 @@ pkgbase = python-ultralytics
    makedepends = python-build
    makedepends = python-installer
    makedepends = python-wheel
+   makedepends = python-setuptools
    depends = python
    depends = python-matplotlib
    depends = python-opencv
@@ -29,8 +30,10 @@ pkgbase = python-ultralytics
    depends = yt-dlp
    depends = python-onnx
    depends = python-tensorflow
-   source = python-ultralytics-8.3.237.tar.gz::https://github.com/ultralytics/ultralytics/archive/refs/tags/v8.3.237.tar.gz
-   sha256sums = 07f28aa6f14b4edce749ae350330c65b4c086d15f524541ee6490738cc3e4ee7
+   source = python-ultralytics-8.4.21.tar.gz::https://github.com/ultralytics/ultralytics/archive/refs/tags/v8.4.21.tar.gz
+   source = setuptools-requirements.patch
+   sha256sums = 0563f774616efc4d005009bbc5dc5c4fe5575e09246443966c2f36fe33b612c0
+   sha256sums = 63f315fd645db19c0491e9f257fdf44a512e1f34a1e31b1280a29404ee7c7c77

 pkgname = python-ultralytics
    depends = python
diff --git a/PKGBUILD b/PKGBUILD
index 09c1a36..36e259c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@

 pkgname=('python-ultralytics')
 _pkgname='ultralytics'
-pkgver=8.3.237
+pkgver=8.4.21
 _pkgdir=${_pkgname}-${pkgver}
 pkgrel=1
 pkgdesc="Object detection, multi-object tracking, instance segmentation, pose estimation and image classification."
@@ -30,15 +30,17 @@ depends=(
   'yt-dlp'
   'python-onnx'
   'python-tensorflow')
-makedepends=('python-build' 'python-installer' 'python-wheel')
+makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
 checkdepends=(ipython)
 license=('AGPL-3.0-or-later')
 arch=('any')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ultralytics/ultralytics/archive/refs/tags/v${pkgver}.tar.gz")
-sha256sums=('07f28aa6f14b4edce749ae350330c65b4c086d15f524541ee6490738cc3e4ee7')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ultralytics/ultralytics/archive/refs/tags/v${pkgver}.tar.gz" "setuptools-requirements.patch")
+sha256sums=('0563f774616efc4d005009bbc5dc5c4fe5575e09246443966c2f36fe33b612c0'
+            '63f315fd645db19c0491e9f257fdf44a512e1f34a1e31b1280a29404ee7c7c77')

 build() {
   cd "${_pkgdir}"
+  patch -p0 < "../../setuptools-requirements.patch"
   python -m build --wheel --no-isolation
 }

diff --git a/setuptools-requirements.patch b/setuptools-requirements.patch
new file mode 100644
index 0000000..b3642e0
--- /dev/null
+++ b/setuptools-requirements.patch
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig    2026-03-13 18:38:55.483119067 -0500
++++ pyproject.toml 2026-03-13 18:39:15.578781209 -0500
+@@ -19,7 +19,7 @@
+ # For comprehensive documentation and usage instructions, visit: https://docs.ultralytics.com
+ 
+ [build-system]
+-requires = ["setuptools>=70.0.0,<=81.0.0", "wheel"]
++requires = ["setuptools>=70.0.0,<=82.0.1", "wheel"]
+ build-backend = "setuptools.build_meta"
+ 
+ # Project settings -----------------------------------------------------------------------------------------------------
-- 
2.53.0

Then run

patch -p1 < "0001-update-to-8.4.21.patch"
updpkgsums
makepkg -si

alhirzel commented on 2024-12-10 08:10 (UTC)

Much appreciated - thanks @envolution!

envolution commented on 2024-12-09 22:46 (UTC)

@alhrizel neither package should be putting files there, I"ll fix this package though

alhirzel commented on 2024-12-09 21:58 (UTC)

There is a file conflict with another package. I think this and python-kiauto both should not create these files. Thoughts?

error: failed to commit transaction (conflicting files)
python-ultralytics: /usr/lib/python3.12/site-packages/tests/__pycache__/conftest.cpython-312.opt-1.pyc exists in filesystem (owned by python-kiauto)
python-ultralytics: /usr/lib/python3.12/site-packages/tests/__pycache__/conftest.cpython-312.pyc exists in filesystem (owned by python-kiauto)
python-ultralytics: /usr/lib/python3.12/site-packages/tests/conftest.py exists in filesystem (owned by python-kiauto)

Waycey commented on 2024-05-15 08:11 (UTC)

python-lapx is on AUR now.

I tested building using PKGBUILD and replacing python-lap with the new dependency on my local machine; seems to work as intended.