From f7cc9e9f2c27e70665f34bdc67f0d90c7ff86352 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Fri, 1 Aug 2025 20:58:54 +0800 Subject: [PATCH] add post link when installing --- .conda/recipe.yaml | 2 -- .conda/scripts/post-link.bat | 9 +++++++++ .conda/scripts/post-link.sh | 9 +++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .conda/scripts/post-link.bat create mode 100644 .conda/scripts/post-link.sh diff --git a/.conda/recipe.yaml b/.conda/recipe.yaml index 0783f99..1110973 100644 --- a/.conda/recipe.yaml +++ b/.conda/recipe.yaml @@ -10,8 +10,6 @@ build: noarch: python script: - set PIP_NO_INDEX= -# - python -m pip install paho-mqtt opentrons_shared_data -# - python -m pip install git+https://github.com/Xuwznln/pylabrobot.git - if: win then: - copy %RECIPE_DIR%\..\MANIFEST.in %SRC_DIR% diff --git a/.conda/scripts/post-link.bat b/.conda/scripts/post-link.bat new file mode 100644 index 0000000..352b78c --- /dev/null +++ b/.conda/scripts/post-link.bat @@ -0,0 +1,9 @@ +@echo off +setlocal enabledelayedexpansion + +REM upgrade pip +"%PREFIX%\python.exe" -m pip install --upgrade pip + +REM install extra deps +"%PREFIX%\python.exe" -m pip install paho-mqtt opentrons_shared_data +"%PREFIX%\python.exe" -m pip install git+https://github.com/Xuwznln/pylabrobot.git diff --git a/.conda/scripts/post-link.sh b/.conda/scripts/post-link.sh new file mode 100644 index 0000000..ef96f15 --- /dev/null +++ b/.conda/scripts/post-link.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -euxo pipefail + +# make sure pip is available +"$PREFIX/bin/python" -m pip install --upgrade pip + +# install extra deps +"$PREFIX/bin/python" -m pip install paho-mqtt opentrons_shared_data +"$PREFIX/bin/python" -m pip install git+https://github.com/Xuwznln/pylabrobot.git