From aa172488b035b6425655904d60d9c16fe3ba4dbe Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 24 Feb 2023 13:35:46 +1100 Subject: [PATCH] Fix #2594. Document potential lag in PyPI releases of C++ core. --- .../docs/ifcopenshell-python/installation.rst | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/docs/ifcopenshell-python/installation.rst b/src/ifcopenshell-python/docs/ifcopenshell-python/installation.rst index e95846da3d..61504b3418 100644 --- a/src/ifcopenshell-python/docs/ifcopenshell-python/installation.rst +++ b/src/ifcopenshell-python/docs/ifcopenshell-python/installation.rst @@ -8,11 +8,15 @@ There are different methods of installation, depending on your situation. 3. **Conda** is recommended for developers using Anaconda. 4. **Docker** is recommended for developers using Docker. 5. **Using the BlenderBIM Add-on** is recommended for non-developers wanting a graphical interface. -6. **Compiling from source** is recommended for developers actively working with the C++ core. +6. **From source with precompiled binaries** is recommended for developers actively working with the Python code. +7. **Compiling from source** is recommended for developers actively working with the C++ core. Pre-built packages ------------------ +Pre-built packages are prepared sporadically depending on whether there are +changes in the IfcOpenShell C++ core. + 1. Choose which version to download based on your operating system, Python version, and computer architecture. @@ -85,6 +89,12 @@ Pre-built packages PyPI ---- +PyPI releases are automatically performed once a month. + +Releases on PyPI may potentially ship slightly outdated precompiled binaires of +the C++ core. This is because the binaries typically go through a period of +manual testing prior in case of high-risk changes. + .. code-block:: pip install ifcopenshell @@ -130,6 +140,8 @@ need to install Python first, and you also can compare your IfcOpenShell scripting to what you see with a visual model viewer, or use a graphical interface to access the IfcOpenShell utilities. +The BlenderBIM Add-on is available either as a stable build or a daily build. + 1. Install the BlenderBIM Add-on by following the `BlenderBIM Add-on installation documentation `_. @@ -168,6 +180,17 @@ and run your script using the **Text > Run Script** menu or by clicking on the interface. `Read more `_. +From source with precompiled binaries +------------------------------------- + +1. Clone or download the `IfcOpenShell repository + `_. + +2. Place ``src/ifcopenshell-python/ifcopenshell/`` in your Python path. + +3. Download the relevant pre-built package, and copy over the two files with + ``ifcopenshell_wrapper`` in their filename to + ``src/ifcopenshell-python/ifcopenshell/``. Compiling from source ---------------------