diff --git a/.github/workflows/conda-packaging.yml b/.github/workflows/conda-packaging.yml index 36102b88..7416d0e2 100644 --- a/.github/workflows/conda-packaging.yml +++ b/.github/workflows/conda-packaging.yml @@ -145,6 +145,14 @@ jobs: echo "Testing Python import..." conda run -n test-install python -c "import simcoon; import simcoon._core; print('✓ Import successful')" + - name: Test compatibility with common packages (Unix) + if: runner.os != 'Windows' + shell: bash -l {0} + run: | + echo "=== Testing simcoon + matplotlib coinstallation ===" + conda install -n test-install -y matplotlib -c conda-forge + conda run -n test-install python -c "import simcoon; import matplotlib; print('✓ simcoon + matplotlib compatible')" + - name: Install and verify package structure (Windows) if: runner.os == 'Windows' shell: pwsh @@ -182,6 +190,14 @@ jobs: Write-Host "Testing Python import..." conda run -n test-install python -c "import simcoon; import simcoon._core; print('Import successful')" + - name: Test compatibility with common packages (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + Write-Host "=== Testing simcoon + matplotlib coinstallation ===" + conda install -n test-install -y matplotlib -c conda-forge + conda run -n test-install python -c "import simcoon; import matplotlib; print('simcoon + matplotlib compatible')" + - name: Upload to Anaconda if: inputs.upload shell: bash -l {0} diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 3e5e663e..89f7b79f 100755 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -13,6 +13,10 @@ build: script_env: - CXXFLAGS=-D_LIBCPP_DISABLE_AVAILABILITY - CONDA_BUILD_LOCAL + ignore_run_exports: + - libblas + - liblapack + - libcblas requirements: build: @@ -33,6 +37,7 @@ requirements: - carma - pybind11 - python + - python_abi {{ python }} *_cp{{ python | replace(".", "") }} # Could be removed when https://github.com/conda/conda-build/issues/5843 is solved - numpy >=2.0 - libblas - liblapack @@ -52,3 +57,4 @@ test: imports: - simcoon - simcoon._core +