Building Documentation
======================
If you don't want to use build the docs, just
See `docs `_
Install extra packages (for Documentation)
------------------------------------------
Install `GraphViz `_
Install additional python packages
.. code-block:: console
pip install Sphinx
pip install alabaster
pip install numpydoc
pip install sphinx_rtd_theme
pip install ipython
Installation From Source
========================
pyNastran is meant to an easy package to install once you have the required Python modules.
It's a pure Python package so you shouldn't have too many problems.
Installing from source is recommended if:
- You want the most recent version (see installation.rst-main)
- You want easier access to the source
- You're on an air-gapped machine
Overview
--------
* Install Python (see :doc:`installation_release`)
* skip the ``pip install pyNastran`` step
* Install Sphinx, GraphViz, alabaster **(for documentation)**
* Install Git
* Clone pyNastran-main from Github
* Install pyNastran
Install Git
===========
* Download & install `Git `_
* Download a GUI for Git (optional)
* `TortoiseGit `_ (recommended for Windows)
Install pyNastran
=================
There are two ways to install the main/dev version of pyNastran
1. Download the most recent `zip version `_
2. Clone pyNastran (see below). Using Git allows you to easily update to the
latest dev version when you want to as well as push any commits of your own.
If you don't want the gui, use ``setup_no_gui.py`` instead of ``setup.py``.
.. code-block:: console
>>> python setup.py develop
or:
.. code-block:: console
>>> python setup_no_gui.py develop
If you don't intend to do any changes on the code you can use the option `install` instead of `develop`.
Cloning pyNastran using TortoiseGit
===================================
Right-click in a folder and select ``Git Clone``.
.. image:: clone.png
Enter the above information. If desired, click the branch box and and enter a branch name
and click ``OK``.
Cloning pyNastran Using Command Line
====================================
Checkout/clone the dev code by typing **(preferred)**:
.. code-block:: console
>>> git clone https://github.com/SteveDoyle2/pynastran
To checkout a branch
.. code-block:: console
>>> git.exe clone --branch 1.3 --progress -v "https://github.com/SteveDoyle2/pyNastran.git" "C:\\work\\pyNastran_1.3"
Build Docs
----------
Navigate to ``pyNastran/docs/html_docs`` directory on the command line.
.. code-block:: console
>>> make html