Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .azure-pipelines/pyinstaller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ steps:
displayName: install libs
- bash: python -m pip install .[pyinstaller] -c requirements/constraints_py3.12.txt
displayName: install partseg
- bash: |
bash build_utils/build_libomp.sh
condition: startsWith(variables['Agent.OS'], 'Darwin')
displayName: install libomp
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
- bash: |
python -m pip install git+https://github.com/4DNucleome/PartSegCore-compiled-backend.git@mso_fix
displayName: install PartSegCore-compiled-backend from `mso_fix` branch
# https://github.com/4DNucleome/PartSegCore-compiled-backend/tree/mso_fix
- bash: |
python build_utils/create_and_pack_executable.py --no-simple-zip
displayName: build
Expand Down
19 changes: 19 additions & 0 deletions build_utils/build_libomp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
build_dir=${DIR}/libs_build
LLVM_VERSION=${LLVM_VERSION:-19.1.1}
INSTALL_CMD=${INSTALL_CMD:-"sudo make install"}

echo MACOSX_DEPLOYMENT_TARGET $MACOSX_DEPLOYMENT_TARGET

git clone --depth 1 --branch llvmorg-${LLVM_VERSION} https://github.com/llvm/llvm-project
pushd llvm-project/openmp
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=${CC:-clang} -DCMAKE_CXX_COMPILER=${CXX:-clang++} ${CMAKE_FLAGS:-} ..
make ${MAKE_FLAGS:-}
${INSTALL_CMD}

popd
rm -rf llvm-project
2 changes: 1 addition & 1 deletion package/PartSegCore/segmentation/watershed.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def sprawl(


class MSOWatershedParams(BaseModel):
step_limits: int = Field(100, ge=1, le=1000, title="Steep limits", description="Limits of Steps")
step_limits: int = Field(100, ge=1, le=10000, title="Steep limits", description="Limits of Steps")
reflective: bool = False


Expand Down