.. # Copyright (c) Lawrence Livermore National Security, LLC and other Conduit .. # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and .. # other details. No copyright assignment is required to contribute to Conduit. .. _getting_started: ================================ Quick Start ================================ Installing Conduit and Third Party Dependencies ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The quickest path to install conduit and its dependencies is via :ref:`uberenv `: .. code:: bash git clone --recursive https://github.com/llnl/conduit.git cd conduit python3 scripts/uberenv/uberenv.py --install --prefix="build" After this completes, ``build/conduit-install`` will contain a Conduit install. For more details about building and installing Conduit see :doc:`building`. This page provides detailed info about Conduit's CMake options, :ref:`uberenv ` and :ref:`Spack ` support. We a :ref:`Docker example ` that leverages Spack. Installing Conduit with pip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you want to use Conduit primarily in Python, another option is to build Conduit with pip. This assumes you have CMake in your path. Basic Install: .. code:: bash git clone --recursive https://github.com/llnl/conduit.git cd conduit pip install . --user If you have a system MPI and an existing HDF5 install you can add those to the build using environment variables. Install with HDF5 and MPI: .. code:: bash git clone --recursive https://github.com/llnl/conduit.git cd conduit env ENABLE_MPI=ON HDF5_DIR={path/to/hdf5_dir} pip install . --user See :ref:`Pip Install Docs ` for more details. Using Conduit in Your Project ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The install includes examples that demonstrate how to use Conduit in a CMake-based build system and via a Makefile. CMake-based build system example (see: ``examples/conduit/using-with-cmake``): .. literalinclude:: ../../examples/using-with-cmake/CMakeLists.txt :lines: 4- Makefile-based build system example (see: ``examples/conduit/using-with-make``): .. literalinclude:: ../../examples/using-with-make/Makefile :lines: 4- Learning Conduit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To get starting learning the core Conduit API, see the Conduit Tutorials for :doc:`C++ ` and :doc:`Python `.