Hi,
I'm trying to install CGAL python bindings with pip, but I'm not able to make it work.
Installing with pip install cgal fails with a metadata version mismatch error (loops endlessly)
Collecting cgal
Downloading cgal-5.6.post202402071826.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/fe/14/abde1bed17d75402b25f60fb4cc39b4f7a2e862756476c2cc5d5c52628b9/cgal-5.6.post202402071826.tar.gz (from https://pypi.org/simple/cgal/) (requires-python:>=3.6): Requested cgal from https://files.pythonhosted.org/packages/fe/14/abde1bed17d75402b25f60fb4cc39b4f7a2e862756476c2cc5d5c52628b9/cgal-5.6.post202402071826.tar.gz has inconsistent version: expected '5.6.post202402071826', but metadata has '5.4.1'
Downloading cgal-5.6.post202402071514.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/db/1e/810d888a58981ba1b9d1b97d861950eb300a9115b0e9f5e6e57293b69828/cgal-5.6.post202402071514.tar.gz (from https://pypi.org/simple/cgal/) (requires-python:>=3.6): Requested cgal from https://files.pythonhosted.org/packages/db/1e/810d888a58981ba1b9d1b97d861950eb300a9115b0e9f5e6e57293b69828/cgal-5.6.post202402071514.tar.gz has inconsistent version: expected '5.6.post202402071514', but metadata has '5.4.1'
Downloading cgal-5.6.post202401251120.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
I tried to override the version used during installation using CGAL_PYTHON_MODULE_VERSION=5.6.post202402071826 pip install cgal. This gets passed this error but raises another one during build.
Defaulting to user installation because normal site-packages is not writeable
Collecting cgal
Using cached cgal-5.6.post202402071826.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/lib64/python3.13/site-packages (from cgal) (1.26.4)
Building wheels for collected packages: cgal
Building wheel for cgal (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cgal (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
/tmp/pip-build-env-e8o9ekpl/overlay/lib/python3.13/site-packages/setuptools/dist.py:761: 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 or later (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_ext
cmake /tmp/pip-install-s71i123a/cgal_e1d7573412664eeabcb2b0a0719ba21c -DBUILD_JAVA=OFF -DBUILD_PYTHON=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=bdist.linux-x86_64/wheel -DPython_EXECUTABLE=/usr/bin/python -DINSTALL_FROM_SETUP=ON -DBoost_DEBUG=TRUE
CMake Warning:
Ignoring extra path from command line:
"/tmp/pip-install-s71i123a/cgal_e1d7573412664eeabcb2b0a0719ba21c"
CMake Error: The source directory "/tmp/pip-install-s71i123a/cgal_e1d7573412664eeabcb2b0a0719ba21c" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
error: command '/usr/bin/cmake' 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 cgal
Failed to build cgal
ERROR: Failed to build installable wheels for some pyproject.toml based projects (cgal)
What am I doing wrong here? Missing some dependencies?
Thanks for your help!
Hi,
I'm trying to install CGAL python bindings with pip, but I'm not able to make it work.
Installing with
pip install cgalfails with a metadata version mismatch error (loops endlessly)I tried to override the version used during installation using
CGAL_PYTHON_MODULE_VERSION=5.6.post202402071826 pip install cgal. This gets passed this error but raises another one during build.What am I doing wrong here? Missing some dependencies?
Thanks for your help!