hiddenSymmetries / booz_xform

Calculates Boozer coordinates for toroidal MHD equilibria, including stellarators and tokamaks.
https://hiddensymmetries.github.io/booz_xform/
BSD 2-Clause "Simplified" License
12 stars 3 forks source link

pip install on ubuntu failing because of pybind11 #8

Open smiet opened 3 years ago

smiet commented 3 years ago

Trying to install booz_xform via pip install -v booz_xform, and I get the following error from pybind11:

  Result of python -m pybind11 --cmakedir:
  CMake Error at CMakeLists.txt:61 (find_package):
    Could not find a package configuration file provided by "pybind11" with any
    of the following names:

      pybind11Config.cmake
      pybind11-config.cmake

    Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set
    "pybind11_DIR" to a directory containing one of the above files.  If
    "pybind11" provides a separate development package or SDK, be sure it has
    been installed.

This is addressed in the pybind11 documentation.

pip installs booz-xform sucessfully if the user runs pip install "pybind11[global]" manually, but this is not recommended.

It is recommended to set the this in the pyproject.toml, but I do not know exactly how to do this. the

What does work is replacing the pybind11 package with the pybind11-global package in the pyproject.toml file.

Could instructions on this be included in the installation section?