Installation ============ .. Package Requirements -------------------- Installing from ``pip`` ----------------------- The `bapsflib` package is registered with `PyPI `_ and can be installed with `pip` via .. code-block:: bash pip install bapsflib For the most recent development version, `bapsflib` can be installed from `GitHub `_. Installing Directly from GitHub ------------------------------- To install directly from GitHub, you need to have `git `_ installed on your computer. If you do not have ``git`` installed, then see `Installing from a GitHub Clone or Download`_. To install directly from the ``master`` branch invoke the following command .. code-block:: bash pip install git+https://github.com/BaPSF/bapsflib.git#egg=bapsflib If an alternate branch ``BranchName`` is desired, then invoke .. code-block:: bash pip install git+https://github.com/BaPSF/bapsflib.git@BranchName#egg=bapsflib Installing from a GitHub Clone or Download ------------------------------------------ A copy of the `bapsflib` package can be obtained by `cloning `_ or downloading from the GitHub repository. Cloning the repository requires an installation of ``git`` on your computer. To clone the ``master`` branch, first, on your computer, navigate to the directory you want the clone and do .. code-block:: bash git clone https://github.com/BaPSF/bapsflib.git To download a copy, go to the `repository `_, select the branch to be downloaded, click the green button labeled :ibf:`Clone or download`, select :ibf:`Download ZIP`, save the zip file to the desired directory, and unpack. After getting a copy of the `bapsflib` package (via clone or download), navigate to the main package directory, where the package :file:`setup.py` file is located, and execute .. code-block:: bash pip install . or .. code-block:: bash python setup.py install Useful Installation Links ------------------------- * bapsflib repository: https://github.com/BaPSF/bapsflib * bapsflib on PyPI: https://pypi.org/project/bapsflib/ * setuptools documentation: https://setuptools.readthedocs.io/en/latest/index.html * pip documentation: https://pip.pypa.io/en/stable/ * git installation: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git * cloning and downloading form GitHub: https://help.github.com/articles/cloning-a-repository/