Skip to content

Can't compile under macos with python 3.13 #6

Description

@Cezanna

$ python3 --version
Python 3.13.4
$ uname -nrm
xxxxx 25.2.0 arm64

and from a previous post to compile with python 3 under macos

$ CPPFLAGS="-I/opt/homebrew/Cellar/exiv2/0.28.2/include -I/opt/homebrew/Cellar/boost/1.85.0/include"
$ LDFLAGS="-L/opt/homebrew/Cellar/exiv2/0.28.2/lib/ -L/opt/homebrew/Cellar/boost-python3/1.85.0/lib"
$ BOOST_LIBDIR=/opt/homebrew/Cellar/boost/1.85.0/lib/
$ export CPPFLAGS LDFLAGS BOOST_LIBDIR

I got this error :

$ pip3 install --break-system-packages --no-binary :all: --no-cache-dir py3exiv2
Collecting py3exiv2
Downloading py3exiv2-0.12.0.tar.gz (47 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: py3exiv2
Building wheel for py3exiv2 (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for py3exiv2 (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [34 lines of output]
/private/var/folders/s_/mc4pdnds2b90m8zzmbh6tx9m0000gp/T/pip-build-env-z0y69pir/overlay/lib/python3.13/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:
  
          License :: OSI Approved :: GNU General Public License v3 (GPLv3)
  
          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************
  
  !!
    self._finalize_license_expression()
  running bdist_wheel
  running build
  running build_py
  creating build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/preview.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/iptc.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/metadata.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/__init__.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/xmp.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/exif.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  copying src/pyexiv2/utils.py -> build/lib.macosx-15.0-arm64-cpython-313/pyexiv2
  running build_ext
  building 'libexiv2python' extension
  creating build/temp.macosx-15.0-arm64-cpython-313/src
  clang++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -I/opt/homebrew/Cellar/exiv2/0.28.2/include -I/opt/homebrew/Cellar/boost/1.85.0/include -I/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c src/exiv2wrapper.cpp -o build/temp.macosx-15.0-arm64-cpython-313/src/exiv2wrapper.o -g -std=c++11
  In file included from src/exiv2wrapper.cpp:27:
  src/exiv2wrapper.hpp:33:10: fatal error: 'exiv2/exiv2.hpp' file not found
     33 | #include "exiv2/exiv2.hpp"
        |          ^~~~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang++' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for py3exiv2
Failed to build py3exiv2
ERROR: Failed to build installable wheels for some pyproject.toml based projects (py3exiv2)

I will appreciate any help..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions