Skip to content
Merged
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'fastsurfer'
version = '2.5.1'
version = '2.6.0-dev'
description = 'A fast and accurate deep-learning based neuroimaging pipeline'
readme = 'README.md'
license = {file = 'LICENSE'}
Expand Down
18 changes: 13 additions & 5 deletions tools/build/install_fs_pruned.sh
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,20 @@ do
cp -r "$fss/$file" "$fsd/$file"
done

# pack if desired with upx (do this before adding all the links
# pack if desired with upx (do this before adding all the links)
if [[ "$upx" == "true" ]] ; then
echo "finding executables in $fsd/bin/..."
exe=($(find "$fsd/bin" -exec file {} \; | grep ELF | cut -d: -f1))
echo "packing $fsd/bin/ executables (this can take a while) ..."
upx -9 "${exe[@]}"
if [[ -z "$(command -v upx)" ]] ; then
echo "UPX requested, but the 'upx' command was not found on PATH; skipping executable packing."
else
echo "finding executables in $fsd/bin/..."
exe=($(find "$fsd/bin" -exec file {} \; | grep ELF | cut -d: -f1))
if [[ "${#exe[@]}" -eq 0 ]] ; then
echo "No UPX-packable executables found in $fsd/bin, skipping."
else
echo "packing $fsd/bin/ executables (this can take a while) ..."
upx -9 "${exe[@]}"
fi
fi
fi

# Modify fsbindings Python package to allow calling scripts like asegstats2table directly:
Expand Down
2 changes: 1 addition & 1 deletion tools/macos_build/build_release_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rsync -av --progress "$FASTSURFER_HOME/" "$FASTSURFER_TO_PACKAGE" \
--exclude .git

# install freesurfer into temp folder
"$tools_dir/build/install_fs_pruned.sh" "$STAGED_DIR" --upx --url "$URL_TO_FREESURFER"
"$tools_dir/build/install_fs_pruned.sh" "$STAGED_DIR" --url "$URL_TO_FREESURFER"

if [[ ! -d "$STAGED_DIR/freesurfer" ]]
then
Expand Down
Loading