Package Details: python-dlib 19.24.6-1

Git Clone URL: https://aur.archlinux.org/python-dlib.git (read-only, click to copy)
Package Base: python-dlib
Description: Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques.
Upstream URL: http://www.dlib.net/
Licenses: boost
Submitter: u1bmoW1r16
Maintainer: petronny (AutoUpdateBot)
Last Packager: petronny
Votes: 16
Popularity: 0.25
First Submitted: 2016-10-27 15:05 (UTC)
Last Updated: 2024-08-10 03:07 (UTC)

Pinned Comments

petronny commented on 2024-03-30 13:11 (UTC) (edited on 2024-03-30 13:13 (UTC) by petronny)

Set _build_cpu and _build_cuda to 1 and 0 to build or not build the CPU or CUDA version.

If options=(!lto) has no effect, please check if it's still enabled in /etc/makepkg.conf.

petronny commented on 2023-11-28 04:57 (UTC)

Prebuilt binaries of this package can be found in arch4edu.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

sidevesh commented on 2023-05-06 03:53 (UTC)

Can conform the issue mentioned by @Misaka13514, this is not building anymore and failing its dependents packages from being installed.

xz-dev commented on 2023-05-05 07:50 (UTC)

19.24.1's PKGBUILD like that:

# Maintainer: Jingbei Li <i@jingbei.li>
# Contributor: Lev Velykoivanenko <velykoivanenko dot lev at gmail dot com>
# Contributor: Flávio Zavan <flavio dot zavan at gmail dot com>
# Contributor: pingplug
# Contributor: perlawk
# Contributor: xsmile

pkgbase=python-dlib
pkgname=('python-dlib')
##pkgname+=('python-dlib-cuda')
_pkgname=dlib
pkgver=19.24.1
pkgrel=1
pkgdesc="Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques."
arch=('x86_64')
url="http://www.dlib.net/"
license=('Boost')
depends=('cblas' 'giflib' 'lapack' 'libjpeg-turbo' 'libpng' 'libx11')
optdepends=('sqlite')
##optdepends+=('cuda' 'cudnn' 'ccache-ext')
makedepends=(${optdepends[@]} 'cmake' 'boost' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/ec/e3/4fed0fb511a88a46365c2da493b73081a5e1a21960bdb18089b27cbc768b/dlib-19.24.1.tar.gz")
sha256sums=('e8d3ca047d525eeb36cc47bce45ed0562dab40b0b8f5fa171600dde2fec509c0')
##options=(!lto)

prepare() {
    cd "$srcdir/"
    cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda"
}

build(){
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python setup.py build --no DLIB_USE_CUDA

##  cuda_flags='--set CUDA_HOST_COMPILER=/opt/cuda/bin/gcc --set CUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache --set CUDA_HOST_COMPILER=/opt/cuda/bin/gcc'

##  cd "${srcdir}/${_pkgname}-${pkgver}-cuda"
##  python setup.py build $cuda_flags
}


package_python-dlib(){
    depends+=('python')
    cd "${srcdir}/${_pkgname}-${pkgver}"
    python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}

package_python-dlib-cuda(){
    depends+=('cuda' 'cudnn' 'python')
    provides=('python-dlib')
    conflicts=('python-dlib')
    cd "${srcdir}/${_pkgname}-${pkgver}-cuda"
    python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}

AkinoKaede commented on 2023-05-04 08:03 (UTC) (edited on 2023-05-04 09:01 (UTC) by AkinoKaede)

These changes may be useful to fix this package with Python 3.11

https://github.com/davisking/dlib/commit/65bce59a1512cf222dec01d3e0f29b612dd181f5
https://github.com/davisking/dlib/commit/b7834324b4b87d2dc3c878980295a9dc3290037e

Misaka13514 commented on 2023-05-04 00:46 (UTC) (edited on 2023-05-04 09:29 (UTC) by Misaka13514)

Cannot build against python 3.11 https://fars.ee/T8Ob update: I can build it by updating pkgver to 19.24.1 (and use pypi source)

gregory112 commented on 2023-03-23 05:18 (UTC)

It has errors in the test now

==================================================================================================================================================== test session starts =====================================================================================================================================================
platform linux -- Python 3.10.10, pytest-3.8.0, py-1.11.1.dev0+g447bac51.d20230131, pluggy-1.0.0
rootdir: /home/gregory112/.cache/yay/python-dlib-cuda/src/dlib-19.22, inifile:
plugins: cov-4.0.0
collected 0 items / 11 errors                                                                                                                                                                                                                                                                                                

=========================================================================================================================================================== ERRORS ===========================================================================================================================================================
______________________________________________________________________________________________________________________________________ ERROR collecting tools/python/test/test_array.py ______________________________________________________________________________________________________________________________________
<frozen importlib._bootstrap>:939: in _find_spec
    ???
E   AttributeError: 'AssertionRewritingHook' object has no attribute 'find_spec'

I think this is related to pytest: https://github.com/pytest-dev/pytest/issues/1888

jaantoots commented on 2018-12-01 20:48 (UTC)

makedepends should include python{,2}-setuptools instead of just python{,2}.

Also, there is no need to list all three cuda, cudnn and libx11 as separate dependencies, as the other two are already dependencies of cudnn.

petronny commented on 2018-11-30 07:56 (UTC) (edited on 2018-11-30 07:57 (UTC) by petronny)

@AbysmalBiscuit

  1. Thanks for the tests on optional dependencies.

  2. ccache-ext is available in AUR now.

  3. You can set license=('Boost') to use /usr/share/licenses/common/Boost/license.txt in licenses.

  4. I see your changes about using the NEON instructions. But I think you misunderstand that this NEON is a kind of ARM instruction technology, not the neon package in [extra] which is a HTTP and WebDAV client library with a C interface.
    I think neon can be only enabled ARM architectures like armv7h or aarch64 and it's useless to python{,2}-dlib-cuda.

  5. I have updating the PKGBUILD of python-dlib to build python{,2}-dlib-cuda as well (currently disabled). So would you like to be a co-maintainer of python-dlib and merge these 2 packages to it?
    And I've disabled the detection of AVX, SSE2, SSE4 instructions and enabled all the optdepends because I'm providing binaries of python{,2}-dlib in my repositories with this PKGBUILD. If you don't agree with these, we can keep our packages separate.

AbysmalBiscuit commented on 2018-08-29 08:35 (UTC)

@Kicer Thanks! That's a good suggestion; I have added it.