From 2f1833a0408a311709d849d36ec608b19abb62e3 Mon Sep 17 00:00:00 2001 From: "Oriol Ricart Vilarrubias." <45894267+uriii3@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:39:55 +0100 Subject: [PATCH] manually add dependency deprecated when building binaries (#274) --- .github/workflows/binary-test.yml | 1 + Makefile | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/binary-test.yml b/.github/workflows/binary-test.yml index 2b1d137e..4e605347 100644 --- a/.github/workflows/binary-test.yml +++ b/.github/workflows/binary-test.yml @@ -12,6 +12,7 @@ on: - "main" paths: - 'pyproject.toml' + - 'conda_environment_binary.yaml' diff --git a/Makefile b/Makefile index 85c91dbb..32b0d846 100644 --- a/Makefile +++ b/Makefile @@ -93,11 +93,11 @@ build-and-prepare-for-binary: # Build with macos windows and linux run-using-pyinstaller-windows-latest: pip install -e . - python -m PyInstaller --copy-metadata copernicusmarine --icon=toolbox_icon.png --copy-metadata xarray --name copernicusmarine.exe --collect-data dask --add-data "C:\Users\runneradmin\micromamba\envs\copernicusmarine-binary\Lib\site-packages\distributed\distributed.yaml;.\distributed" copernicusmarine/command_line_interface/copernicus_marine.py --onefile --copy-metadata zarr + python -m PyInstaller --hiddenimport deprecated --copy-metadata copernicusmarine --icon=toolbox_icon.png --copy-metadata xarray --name copernicusmarine.exe --collect-data dask --add-data "C:\Users\runneradmin\micromamba\envs\copernicusmarine-binary\Lib\site-packages\distributed\distributed.yaml;.\distributed" copernicusmarine/command_line_interface/copernicus_marine.py --onefile --copy-metadata zarr run-using-pyinstaller-macos: pip install -e . - python -m PyInstaller --noconfirm --clean --onefile --copy-metadata xarray --name copernicusmarine_macos-${ARCH}.cli --copy-metada pandas --collect-data dask --collect-data distributed --collect-data tzdata --copy-metadata copernicusmarine copernicusmarine/command_line_interface/copernicus_marine.py --target-architecture=${ARCH} --copy-metadata zarr + python -m PyInstaller --hiddenimport deprecated --noconfirm --clean --onefile --copy-metadata xarray --name copernicusmarine_macos-${ARCH}.cli --copy-metada pandas --collect-data dask --collect-data distributed --collect-data tzdata --copy-metadata copernicusmarine copernicusmarine/command_line_interface/copernicus_marine.py --target-architecture=${ARCH} --copy-metadata zarr run-using-pyinstaller-macos-13: ARCH = x86_64 run-using-pyinstaller-macos-13: run-using-pyinstaller-macos @@ -112,7 +112,7 @@ run-using-pyinstaller-linux: openssl version -a export LD_LIBRARY_PATH=/home/runner/micromamba/envs/copernicusmarine-binary/lib echo $$LD_LIBRARY_PATH - python3 -m PyInstaller --collect-all tzdata --copy-metadata copernicusmarine --name copernicusmarine_${DISTRIBUTION}.cli --collect-data distributed --collect-data dask copernicusmarine/command_line_interface/copernicus_marine.py --onefile --path /opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages --copy-metadata xarray --copy-metadata zarr + python3 -m PyInstaller --hiddenimport deprecated --collect-all tzdata --copy-metadata copernicusmarine --name copernicusmarine_${DISTRIBUTION}.cli --collect-data distributed --collect-data dask copernicusmarine/command_line_interface/copernicus_marine.py --onefile --path /opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/site-packages --copy-metadata xarray --copy-metadata zarr chmod +rwx /home/runner/work/copernicus-marine-toolbox/copernicus-marine-toolbox/dist/copernicusmarine_${DISTRIBUTION}.cli run-using-pyinstaller-ubuntu-22.04: DISTRIBUTION = linux-glibc-2.35