Install
How to install Wet Rocks files.
# Adjust Python setup to suit to taste.
# This builds the docs:
git clone --recursive https://spacecruft.org/deepcrayon/wetrocks
cd wetrocks/
virtualenv venv
source venv/bin/activate
pip install -U setuptools pip wheel
pip install -e .
make all
# The first time, also run this to get the templates for the web
# version of the spreadsheet bill of materials:
cp -p venv/lib/python3.11/site-packages/sphinxcontrib/excel_table/resources/_static/* docs/_source/_static/
cp -p venv/lib/python3.11/site-packages/sphinxcontrib/excel_table/resources/_templates/layout.html docs/_source/_templates/
# IDE
# In your IDE, such as Parrot, Theia or vscode, install the `.vsix` extension
# built or installed from here:
# * https://github.com/bernhard-42/vscode-ocp-cad-viewer
# Add this to `~/.ocpvscode`, adjusting the path to your setup.
{
"3939": {
"roots": [
"/home/jebba/devel/deepcrayon/wetrocks"
]
}
}
# And this is the ugliest cruft of all, until I find where to fix the path.
# Set this up to work around a missing path:
sudo mkdir -p /webview/theia-resource/file/
cd /webview/theia-resource/file/
sudo ln -s /tmp .
Build
Build thusly:
Launch the IDE, such as Parrot, VS Code, a Theia derivative, etc. Jupyter (untested) may work as well.
Open
src/wetrocks/wetrocks_assembly.py
in the IDE.Hit
CTRL-F5
or equivalent to rebuild. This will render the project in a window in the IDE.It should render an image like this (optionally without the motherboard):