scikit-hep / fastjet

Jet-finding in the Scikit-HEP ecosystem.
https://fastjet.readthedocs.io
BSD 3-Clause "New" or "Revised" License
20 stars 12 forks source link

Issue with pip install fastjet #306

Open alexbuzzi opened 1 month ago

alexbuzzi commented 1 month ago

Using the following version of pip on my machine:

pip version: 24.1.2 machine: 2023 Macbook Pro - M3 Pro chip

running pip install fastjet gives the following error:

pip install fastjet

        File "/Users/user/mambaforge/lib/python3.10/subprocess.py", line 526, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['./autogen.sh', '--prefix=/private/var/folders/bk/bq4bkyhn6l7gr156r0_j7zdc0000gn/T/pip-install-ya9d_et6/fastjet_cb60f3f8fb88406aa5147511cad1d44a/src/fastjet/_fastjet_core', '--enable-thread-safety', '--disable-auto-ptr', '--enable-allcxxplugins', '--enable-cgal-header-only', '--enable-cgal', '--with-cgaldir=/private/var/folders/bk/bq4bkyhn6l7gr156r0_j7zdc0000gn/T/pip-install-ya9d_et6/fastjet_cb60f3f8fb88406aa5147511cad1d44a/CGAL-5.6', '--enable-swig', '--enable-pyext', "LDFLAGS= -Wl,-rpath,'$$ORIGIN/_fastjet_core/lib:$$ORIGIN:$$ORIGIN/../..'"]' returned non-zero exit status 1.
      [end of output] 

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

@alexbuzzi you're seeing this as there aren't yet Apple silicon compatible wheels for fastjet on PyPI (c.f. Issue https://github.com/scikit-hep/fastjet/issues/169). pip is then trying to build from the sdist but you don't have the necessary build tools locally installed.