Skip to content

Command Set

The followings are the commands of handling Pyslvs-UI repository. If you just want to try the last nightly version, just follow the steps of full installation.

Pyslvs-UI and its kernel are the PEP 517 Python project, which requires some tools as shown below.

Tool Description
pip & setuptools Must upgrade to the new version to support PEP 517.
wheel Supports wheel functions.
build Used to build the wheels and source distributions under PEP 517.
apimd Used to generate the documentation.
PyInstaller Used to make standalone distributions.

Users of Windows platform must be able to execute shell scripts. (Msys2 is recommended)

Full Installation

pip install -e .

To update developing kernel only, goto pyslvs repository and execute the same command again.

Python Package Distribution

Use pip only: (only supports wheels)

pip wheel . --no-deps -w dist

Use build: (both wheels and sources)

python -m build
python -m build --wheel
python -m build --sdist

Standalone Distribution

Use PyInstaller: (Windows and macOS)

./scripts/pyinstaller.sh

Use AppImage: (Linux)

./scripts/appimage.sh

Documentation Generation

./scripts/doc.sh

Qt Resources Generation

python scripts/uic.py --ui
python scripts/uic.py --qrc

Uninstallation

pip uninstall pyslvs-ui pyslvs

Extras:

pip uninstall python-solvespace

Last update: February 26, 2021