-
Notifications
You must be signed in to change notification settings - Fork 92
Separate documentation into "Install" and "Build from Source" #1138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ReeceHumphreys
wants to merge
5
commits into
develop
Choose a base branch
from
feature/updated-docs
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f9cc254
Move existing Install instructions to Build
ReeceHumphreys 258d672
Add new pip install instructions
ReeceHumphreys fa9eed4
Update README.md with install guide
ReeceHumphreys 1203562
Minor tweaks to wheel instructions
ReeceHumphreys e3fab72
Updated release notes
ReeceHumphreys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| Building from Source | ||
| ==================== | ||
|
|
||
| .. _bskInstall-build: | ||
|
|
||
| For advanced users and developers who want to customize or debug Basilisk. For | ||
| most users the precompiled version available on PyPI is sufficient. See the | ||
| :ref:`Install Instructions <bskInstall>` for more information. | ||
|
|
||
| .. note:: | ||
| To use custom C++ modules, Basilisk must be built from source. | ||
| The prebuilt PyPI wheels are designed for most users and include all standard | ||
| features, but they do not yet support linking external C++ modules. | ||
| We're actively exploring ways to enable this in future releases. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
| :caption: Contents: | ||
|
|
||
| Build/pullCloneBSK | ||
| Build/installOnLinux | ||
| Build/installOnMacOS | ||
| Build/installOnWindows | ||
| Build/installBuild | ||
| Build/buildExtModules | ||
| Build/customPython | ||
| Build/installBuildConan | ||
| Build/pipInstall |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,71 @@ | ||
| .. Basilisk documentation master file, created by | ||
| sphinx-quickstart on Mon Sep 23 13:52:19 2019. | ||
| You can adapt this file completely to your liking, but it should at least | ||
| contain the root `toctree` directive. | ||
|
|
||
| .. _bskInstall: | ||
|
|
||
| Install | ||
| ======= | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
| :caption: Contents: | ||
|
|
||
| Install/pullCloneBSK | ||
| Install/installOnLinux | ||
| Install/installOnMacOS | ||
| Install/installOnWindows | ||
| Install/installBuild | ||
| Install/buildExtModules | ||
| Install/customPython | ||
| Install/installBuildConan | ||
| Install/pipInstall | ||
| Basilisk can be installed either from `PyPI <https://pypi.org/project/bsk/>`_ as | ||
| a prebuilt wheel or built locally from source. | ||
| The prebuilt wheels include all build options, such as optical navigation | ||
| and MuJoCo dynamics, but do **not** support linking external C++ modules, as | ||
| this requires rebuilding Basilisk. | ||
|
|
||
| If you want to use custom C++ modules, or prefer smaller install sizes by | ||
| excluding unused features, you must build Basilisk from source. | ||
| See the :ref:`Building from Source <bskInstall-build>` for more information. | ||
|
|
||
| .. note:: | ||
| We are currently investigating ways to allow users to link external C++ | ||
| modules while using the prebuilt PyPI wheel. Stay tuned! | ||
|
|
||
|
|
||
| The easiest way to install Basilisk is using ``pip`` to install the prebuilt | ||
| package from PyPI. Run: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| pip install bsk | ||
|
|
||
| Or, if using `uv <https://docs.astral.sh/uv/>`_ (a modern Python package manager): | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| uv pip install bsk | ||
|
|
||
| This installs the latest stable version of Basilisk and all dependencies. | ||
| To install a specific version, run: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| pip install bsk==<version> | ||
|
|
||
| Replace ``<version>`` with the desired release number, e.g. ``2.0.0``. | ||
|
|
||
|
|
||
| **Prebuilt wheel availability:** | ||
|
|
||
| - **Windows:** Windows 10/11 (x86_64) | ||
| - **macOS:** macOS 11+ (x86_64 and Apple Silicon arm64) | ||
| - **Linux:** Manylinux 2.24+ (x86_64, aarch64) | ||
|
|
||
| All wheels are built as **ABI3** packages for Basilisk supported Python | ||
| versions. | ||
|
|
||
| .. note:: | ||
| On unsupported systems or Python versions, ``pip`` will automatically | ||
| download the source archive (``.tar.gz``) and build Basilisk locally. | ||
| This requires a C++ compiler toolchain and standard build tools | ||
| to be installed on your system. | ||
|
|
||
| To keep the wheel size smaller, the large BSK data files are not installed by | ||
| default. If the user wants to use script that assumes they are included into | ||
| the Basilisk python package, then go to the command line, change the current | ||
| directory to be inside the environment where Basilisk was ``pip`` installed, | ||
| and run the command:: | ||
|
|
||
| bskLargeData | ||
|
|
||
| This command runs a python file stored in the ``src/utilities`` folder. | ||
| The ``pip install`` process automatically | ||
| creates this console command in the current python environment to call this | ||
| python file. The file directly downloads the missing large BSK data files and put | ||
| them into the local Basilisk python package installation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.