Skip to content

Commit

Permalink
fix(install_zutils): can't precompile waterz
Browse files Browse the repository at this point in the history
  • Loading branch information
nkemnitz committed Jan 28, 2025
1 parent 4c7f97a commit 15a17a9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 23 deletions.
5 changes: 0 additions & 5 deletions compile_waterz

This file was deleted.

7 changes: 6 additions & 1 deletion docker/Dockerfile.all
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& ./install_zutils.py --dockerfile --mode modules \
&& rm -rf /root/.cache/bazel/ \
&& apt-mark auto '.*' > /dev/null \
&& apt-mark manual $savedAptMark zstd parallel coreutils libtbb2 libjemalloc2 \
&& apt-mark manual \
$savedAptMark \
# abiss
zstd parallel coreutils libjemalloc2 \
# waterz
libboost-dev g++ \
&& find /usr/local/lib /opt/conda -type f -executable -exec ldd '{}' ';' \
| awk '/=>/ { print $(NF-1) }' \
| sort -u \
Expand Down
7 changes: 6 additions & 1 deletion docker/Dockerfile.all_pcg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& ./install_zutils.py --dockerfile --mode modules --pcg \
&& rm -rf /root/.cache/bazel/ \
&& apt-mark auto '.*' > /dev/null \
&& apt-mark manual $savedAptMark zstd parallel coreutils libtbb2 libjemalloc2 \
&& apt-mark manual \
$savedAptMark \
# abiss
zstd parallel coreutils libjemalloc2 \
# waterz
libboost-dev g++ \
&& find /usr/local/lib /opt/conda -type f -executable -exec ldd '{}' ';' \
| awk '/=>/ { print $(NF-1) }' \
| sort -u \
Expand Down
32 changes: 16 additions & 16 deletions install_zutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,21 +628,22 @@ def main():
"git",
"build-essential",
"wget",
"ffmpeg",
"libsm6",
"libxext6",
"curl",
"cmake",
"ninja-build",
"pkg-config",
"zstd",
"parallel",
"coreutils",
"libboost-system-dev",
"libboost-iostreams-dev",
"libjemalloc-dev",
"libtbb-dev",
"unixodbc-dev",
"ffmpeg", # opencv
"libsm6", # opencv
"libxext6", # opencv
"curl", # abiss
"cmake", # abiss
"ninja-build", # abiss
"pkg-config", # abiss
"zstd", # abiss
"parallel", # abiss
"coreutils", # abiss
"libboost-system-dev", # abiss
"libboost-iostreams-dev", # abiss
"libjemalloc-dev", # abiss
"libtbb-dev", # abiss
"libboost-dev", # waterz
"unixodbc-dev", # ???
]
run_command(f"{sudo_prefix}apt-get update", "Updating package lists")
apt_install_flags = '-y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"'
Expand All @@ -669,7 +670,6 @@ def main():
run_command(
f"pip install --upgrade .[{install_mode}]", "Installing `zetta_utils` python package"
)
run_command("python3 ./compile_waterz", "Compiling waterz")
if args.pcg:
run_command(
"pip install --no-deps git+https://github.com/CAVEconnectome/[email protected]",
Expand Down

1 comment on commit 15a17a9

@trivoldus28
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nkemnitz I wonder if it's possible to precompile waterz/abiss as installable wheels instead

Please sign in to comment.