Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local tests fail because pytest doesn't find tests #1167

Closed
rgommers opened this issue Nov 6, 2024 · 8 comments
Closed

Local tests fail because pytest doesn't find tests #1167

rgommers opened this issue Nov 6, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@rgommers
Copy link
Contributor

rgommers commented Nov 6, 2024

I'm changing the meson-python feedstock over to rattler-build in conda-forge/meson-python-feedstock#24. That PR passes just fine, however when running $ rattler-build build --recipe recipe locally, the test files can't be located:

 │ │ │ Installing test environment
 │ │ │ ✔ Successfully updated the test environment
 │ │ │ Testing commands:
 │ │ │ + pip check
 │ │ │ No broken requirements found.
 │ │ │ + export 'CPPFLAGS= -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
 │ │ │ + CPPFLAGS=' -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
 │ │ │ + echo
 │ │ │ + ls -a .
 │ │ │ .
 │ │ │ ..
 │ │ │ build_env.sh
 │ │ │ conda_build.sh
 │ │ │ info
 │ │ │ site-packages
 │ │ │ + pytest ./tests -vv
 │ │ │ ============================= test session starts ==============================
 │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- $PREFIX/bin/python3.12
 │ │ │ cachedir: .pytest_cache
 │ │ │ rootdir: $SRC_DIR
 │ │ │ plugins: mock-3.14.0
 │ │ │ ERROR: file or directory not found: ./tests
 │ │ │ collecting ... collected 0 items
 │ │ │ ============================ no tests ran in 0.00s =============================
 │ │ │ × error Script failed with status 4
 │ │ │ × error Work directory: '/tmp/.tmpAO1LWd'
 │ │ │ × error To debug the build, run it manually in the work directory (execute the `./conda_build.sh` or `conda_build.bat` sc
 │ │ │ × error ript)

Full output:

$ rattler-build build --recipe recipe/

 ╭─ Finding outputs from recipe
 │ Found 1 variants
 │ Build variant: meson-python-0.17.1-pyh4616a5c_1
 │ 
 │ ╭─────────────────┬─────────╮
 │ │ Variant         ┆ Version │
 │ ╞═════════════════╪═════════╡
 │ │ target_platform ┆ noarch  │
 │ ╰─────────────────┴─────────╯
 │
 ╰─────────────────── (took 0 seconds)

 ╭─ Running build for recipe: meson-python-0.17.1-pyh4616a5c_1
 │
 │ ╭─ Fetching source code
 │ │ Validated SHA256 values of the downloaded file!
 │ │ Found valid source cache file.
 │ │ Using extracted directory from cache: /home/rgommers/code/tmp/meson-python-feedstock/output/src_cache/0_17_1_d5333564
 │ │ Copying source from url: /home/rgommers/code/tmp/meson-python-feedstock/output/src_cache/0_17_1_d5333564 to /home/rgommers
 │ │ /code/tmp/meson-python-feedstock/output/bld/rattler-build_meson-python_1730926759/work
 │ │
 │ ╰─────────────────── (took 0 seconds)
 │
 │ ╭─ Resolving environments
 │ │ 
 │ │ Resolving host environment:
 │ │   Platform: linux-64 [__unix=0=0, __linux=6.11.5=0, __glibc=2.40=0, __cuda=12.7=0, __archspec=1=skylake_avx512]
 │ │   Channels: 
 │ │    - file:///home/rgommers/code/tmp/meson-python-feedstock/output/
 │ │    - conda-forge
 │ │   Specs:
 │ │    - meson >=0.63.3
 │ │    - ninja
 │ │    - packaging >=19.0
 │ │    - pyproject-metadata >=0.7.1
 │ │    - pip
 │ │    - python >=3.7
 │ │    - tomli >=1.0.0
 │ │ 
 │ │ ╭────────────────────┬───────────┬────────────────────┬─────────────┬────────────╮
 │ │ │ Package            ┆ Version   ┆ Build              ┆ Channel     ┆ Size       │
 │ │ ╞════════════════════╪═══════════╪════════════════════╪═════════════╪════════════╡
 │ │ │ _libgcc_mutex      ┆ 0.1       ┆ conda_forge        ┆ conda-forge ┆ 2.50 KiB   │
 │ │ │ _openmp_mutex      ┆ 4.5       ┆ 2_gnu              ┆ conda-forge ┆ 23.07 KiB  │
 │ │ │ bzip2              ┆ 1.0.8     ┆ h4bc722e_7         ┆ conda-forge ┆ 246.86 KiB │
 │ │ │ ca-certificates    ┆ 2024.8.30 ┆ hbcca054_0         ┆ conda-forge ┆ 155.28 KiB │
 │ │ │ ld_impl_linux-64   ┆ 2.43      ┆ h712a8e2_2         ┆ conda-forge ┆ 653.53 KiB │
 │ │ │ libexpat           ┆ 2.6.3     ┆ h5888daf_0         ┆ conda-forge ┆ 71.89 KiB  │
 │ │ │ libffi             ┆ 3.4.2     ┆ h7f98852_5         ┆ conda-forge ┆ 56.93 KiB  │
 │ │ │ libgcc             ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 828.85 KiB │
 │ │ │ libgcc-ng          ┆ 14.2.0    ┆ h69a702a_1         ┆ conda-forge ┆ 52.87 KiB  │
 │ │ │ libgomp            ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 450.19 KiB │
 │ │ │ libnsl             ┆ 2.0.1     ┆ hd590300_0         ┆ conda-forge ┆ 32.62 KiB  │
 │ │ │ libsqlite          ┆ 3.47.0    ┆ hadc24fc_1         ┆ conda-forge ┆ 854.83 KiB │
 │ │ │ libstdcxx          ┆ 14.2.0    ┆ hc0a3c3a_1         ┆ conda-forge ┆ 3.71 MiB   │
 │ │ │ libstdcxx-ng       ┆ 14.2.0    ┆ h4852527_1         ┆ conda-forge ┆ 52.84 KiB  │
 │ │ │ libuuid            ┆ 2.38.1    ┆ h0b41bf4_0         ┆ conda-forge ┆ 32.81 KiB  │
 │ │ │ libxcrypt          ┆ 4.4.36    ┆ hd590300_1         ┆ conda-forge ┆ 98.04 KiB  │
 │ │ │ libzlib            ┆ 1.3.1     ┆ hb9d3cd8_2         ┆ conda-forge ┆ 59.53 KiB  │
 │ │ │ meson              ┆ 1.6.0     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 642.02 KiB │
 │ │ │ ncurses            ┆ 6.5       ┆ he02047a_1         ┆ conda-forge ┆ 868.25 KiB │
 │ │ │ ninja              ┆ 1.12.1    ┆ h297d8ca_0         ┆ conda-forge ┆ 2.10 MiB   │
 │ │ │ openssl            ┆ 3.3.2     ┆ hb9d3cd8_0         ┆ conda-forge ┆ 2.76 MiB   │
 │ │ │ packaging          ┆ 24.1      ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 49.11 KiB  │
 │ │ │ pip                ┆ 24.3.1    ┆ pyh8b19718_0       ┆ conda-forge ┆ 1.19 MiB   │
 │ │ │ pyproject-metadata ┆ 0.9.0     ┆ pyh2cfa8aa_0       ┆ conda-forge ┆ 20.85 KiB  │
 │ │ │ python             ┆ 3.12.7    ┆ hc5c86c4_0_cpython ┆ conda-forge ┆ 30.11 MiB  │
 │ │ │ readline           ┆ 8.2       ┆ h8228510_1         ┆ conda-forge ┆ 274.86 KiB │
 │ │ │ setuptools         ┆ 75.3.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 761.29 KiB │
 │ │ │ tk                 ┆ 8.6.13    ┆ noxft_h4845f30_101 ┆ conda-forge ┆ 3.17 MiB   │
 │ │ │ tomli              ┆ 2.0.2     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 17.78 KiB  │
 │ │ │ tzdata             ┆ 2024b     ┆ hc8b5060_0         ┆ conda-forge ┆ 119.49 KiB │
 │ │ │ wheel              ┆ 0.44.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 57.21 KiB  │
 │ │ │ xz                 ┆ 5.2.6     ┆ h166bdaf_0         ┆ conda-forge ┆ 408.56 KiB │
 │ │ ╰────────────────────┴───────────┴────────────────────┴─────────────┴────────────╯
 │ │ 
 │ │ Finalized run dependencies:
 │ │ ╭────────────────────┬────────────────────────╮
 │ │ │ Name               ┆ Spec                   │
 │ │ ╞════════════════════╪════════════════════════╡
 │ │ │ Run dependencies   ┆                        │
 │ │ │ meson              ┆ >=0.63.3               │
 │ │ │ ninja              ┆                        │
 │ │ │ packaging          ┆ >=19.0                 │
 │ │ │ pyproject-metadata ┆ >=0.7.1                │
 │ │ │ python             ┆ >=3.7                  │
 │ │ │ tomli              ┆ >=1.0.0                │
 │ │ │ python             ┆ (RE of [host: python]) │
 │ │ ╰────────────────────┴────────────────────────╯
 │ │
 │ ╰─────────────────── (took 3 seconds)
 │ 
 │ Installing build environment
 │ ✔ Successfully updated the build environment
 │ 
 │ Installing host environment
 │ ✔ Successfully updated the host environment
 │
 │ ╭─ Running build script
 │ │ + $PREFIX/bin/python -m pip install . -vv
 │ │ Using pip 24.3.1 from $PREFIX/lib/python3.12/site-packages/pip (python 3.12)
 │ │ Non-user install because user site-packages disabled
 │ │ Ignoring indexes: https://pypi.org/simple
 │ │ Created temporary directory: /tmp/pip-build-tracker-jn94ogfd
 │ │ Initialized build tracking at /tmp/pip-build-tracker-jn94ogfd
 │ │ Created build tracker: /tmp/pip-build-tracker-jn94ogfd
 │ │ Entered build tracker: /tmp/pip-build-tracker-jn94ogfd
 │ │ Created temporary directory: /tmp/pip-install-pzzoinuc
 │ │ Created temporary directory: /tmp/pip-ephem-wheel-cache-39qhwd0m
 │ │ Processing $SRC_DIR
 │ │   Added file://$SRC_DIR to build tracker '/tmp/pip-build-tracker-jn94ogfd'
 │ │   Created temporary directory: /tmp/pip-modern-metadata-hj2vpxjs
 │ │   Preparing metadata (pyproject.toml): started
 │ │   Running command Preparing metadata (pyproject.toml)
 │ │   + meson setup $SRC_DIR $SRC_DIR/.mesonpy-jprkvi5u -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=$
 │ │ SRC_DIR/.mesonpy-jprkvi5u/meson-python-native-file.ini
 │ │   The Meson build system
 │ │   Version: 1.6.0
 │ │   Source dir: $SRC_DIR
 │ │   Build dir: $SRC_DIR/.mesonpy-jprkvi5u
 │ │   Build type: native build
 │ │   Project name: meson-python
 │ │   Project version: 0.17.1
 │ │   Host machine cpu family: x86_64
 │ │   Host machine cpu: x86_64
 │ │   Program python found: YES ($PREFIX/bin/python)
 │ │   Build targets in project: 0
 │ │   meson-python 0.17.1
 │ │     User defined options
 │ │       Native files: $SRC_DIR/.mesonpy-jprkvi5u/meson-python-native-file.ini
 │ │       b_ndebug    : if-release
 │ │       b_vscrt     : md
 │ │       buildtype   : release
 │ │   Found ninja-1.12.1 at $PREFIX/bin/ninja
 │ │   + $PREFIX/bin/ninja
 │ │   ninja: no work to do.
 │ │   [1/7] $SRC_DIR/mesonpy/__init__.py
 │ │   [2/7] $SRC_DIR/mesonpy/_compat.py
 │ │   [3/7] $SRC_DIR/mesonpy/_editable.py
 │ │   [4/7] $SRC_DIR/mesonpy/_rpath.py
 │ │   [5/7] $SRC_DIR/mesonpy/_tags.py
 │ │   [6/7] $SRC_DIR/mesonpy/_util.py
 │ │   [7/7] $SRC_DIR/mesonpy/_wheelfile.py
 │ │   Preparing metadata (pyproject.toml): finished with status 'done'
 │ │   Source in $SRC_DIR has version 0.17.1, which satisfies requirement meson-python==0.17.1 from file://$SRC_DIR
 │ │   Removed meson-python==0.17.1 from file://$SRC_DIR from build tracker '/tmp/pip-build-tracker-jn94ogfd'
 │ │ Created temporary directory: /tmp/pip-unpack-w9tm2915
 │ │ Building wheels for collected packages: meson-python
 │ │   Created temporary directory: /tmp/pip-wheel-t9op3j0j
 │ │   Destination directory: /tmp/pip-wheel-t9op3j0j
 │ │   Building wheel for meson-python (pyproject.toml): started
 │ │   Running command Building wheel for meson-python (pyproject.toml)
 │ │   Building wheel for meson-python (pyproject.toml): finished with status 'done'
 │ │   Created wheel for meson-python: filename=meson_python-0.17.1-py3-none-any.whl size=27514 sha256=7ea8d3e5f6e599c954f2d20b
 │ │ 40fa10f64c895a03ae246c1ac3962a4d48cbe759
 │ │   Stored in directory: /tmp/pip-ephem-wheel-cache-39qhwd0m/wheels/61/a4/2a/6fc24267bd1b45c311e362f7bbf19b14e1373aa347bf4dd
 │ │ b7a
 │ │ Successfully built meson-python
 │ │ Installing collected packages: meson-python
 │ │ Successfully installed meson-python-0.17.1
 │ │ Removed build tracker: '/tmp/pip-build-tracker-jn94ogfd'
 │ │
 │ ╰─────────────────── (took 2 seconds)
 │
 │ ╭─ Packaging new files
 │ │ Copying done!
 │ │ Post-processing done!
 │ │ Writing test files
 │ │ Writing metadata for package
 │ │ Copying license files
 │ │ Copying recipe files
 │ │ Creating entry points
 │ │ 
 │ │ Files in package:
 │ │   - site-packages/meson_python-0.17.1.dist-info/INSTALLER
 │ │   - site-packages/meson_python-0.17.1.dist-info/METADATA
 │ │   - site-packages/meson_python-0.17.1.dist-info/MIT.txt
 │ │   - site-packages/meson_python-0.17.1.dist-info/RECORD
 │ │   - site-packages/meson_python-0.17.1.dist-info/REQUESTED
 │ │   - site-packages/meson_python-0.17.1.dist-info/WHEEL
 │ │   - site-packages/meson_python-0.17.1.dist-info/direct_url.json
 │ │   - site-packages/mesonpy/__init__.py
 │ │   - site-packages/mesonpy/_compat.py
 │ │   - site-packages/mesonpy/_editable.py
 │ │   - site-packages/mesonpy/_rpath.py
 │ │   - site-packages/mesonpy/_tags.py
 │ │   - site-packages/mesonpy/_util.py
 │ │   - site-packages/mesonpy/_wheelfile.py
 │ │   - info/about.json
 │ │   - info/hash_input.json
 │ │   - info/index.json
 │ │   - info/licenses/LICENSE
 │ │   - info/link.json
 │ │   - info/paths.json
 │ │   - info/recipe/recipe.yaml
 │ │   - info/recipe/rendered_recipe.yaml
 │ │   - info/recipe/variant_config.yaml
 │ │   - info/tests/tests.yaml
 │ │ Creating target folder '/home/rgommers/code/tmp/meson-python-feedstock/output/noarch'
 │ │ Creating empty build folder "/home/rgommers/code/tmp/meson-python-feedstock/output/linux-64"
 │ │ Compressing archive...
 │ │ Archive written to '/home/rgommers/code/tmp/meson-python-feedstock/output/noarch/meson-python-0.17.1-pyh4616a5c_1.conda'
 │ │
 │ ╰─────────────────── (took 0 seconds)
 │
 │ ╭─ Running package tests
 │ │ Removing previously cached package '/home/rgommers/.cache/rattler/cache/pkgs/meson-python-0.17.1-pyh4616a5c_1'
 │ │ Creating test environment in '/home/rgommers/code/tmp/meson-python-feedstock/output/bld/rattler-build_meson-python_1730926
 │ │ 759/work/test'
 │ │ Collecting tests from '/home/rgommers/.cache/rattler/cache/pkgs/meson-python-0.17.1-pyh4616a5c_1'
 │ │
 │ │ ╭─ Running python test
 │ │ │ 
 │ │ │ Resolving test environment:
 │ │ │   Platform: linux-64 [__unix=0=0, __linux=6.11.5=0, __glibc=2.40=0, __cuda=12.7=0, __archspec=1=skylake_avx512]
 │ │ │   Channels: 
 │ │ │    - file:///tmp/.tmpdnh5aK/
 │ │ │    - file:///home/rgommers/code/tmp/meson-python-feedstock/output/
 │ │ │    - conda-forge
 │ │ │   Specs:
 │ │ │    - meson-python ==0.17.1 pyh4616a5c_1
 │ │ │    - pip
 │ │ │ 
 │ │ │ ╭────────────────────┬───────────┬────────────────────┬─────────────┬────────────╮
 │ │ │ │ Package            ┆ Version   ┆ Build              ┆ Channel     ┆ Size       │
 │ │ │ ╞════════════════════╪═══════════╪════════════════════╪═════════════╪════════════╡
 │ │ │ │ _libgcc_mutex      ┆ 0.1       ┆ conda_forge        ┆ conda-forge ┆ 2.50 KiB   │
 │ │ │ │ _openmp_mutex      ┆ 4.5       ┆ 2_gnu              ┆ conda-forge ┆ 23.07 KiB  │
 │ │ │ │ bzip2              ┆ 1.0.8     ┆ h4bc722e_7         ┆ conda-forge ┆ 246.86 KiB │
 │ │ │ │ ca-certificates    ┆ 2024.8.30 ┆ hbcca054_0         ┆ conda-forge ┆ 155.28 KiB │
 │ │ │ │ ld_impl_linux-64   ┆ 2.43      ┆ h712a8e2_2         ┆ conda-forge ┆ 653.53 KiB │
 │ │ │ │ libexpat           ┆ 2.6.3     ┆ h5888daf_0         ┆ conda-forge ┆ 71.89 KiB  │
 │ │ │ │ libffi             ┆ 3.4.2     ┆ h7f98852_5         ┆ conda-forge ┆ 56.93 KiB  │
 │ │ │ │ libgcc             ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 828.85 KiB │
 │ │ │ │ libgcc-ng          ┆ 14.2.0    ┆ h69a702a_1         ┆ conda-forge ┆ 52.87 KiB  │
 │ │ │ │ libgomp            ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 450.19 KiB │
 │ │ │ │ libnsl             ┆ 2.0.1     ┆ hd590300_0         ┆ conda-forge ┆ 32.62 KiB  │
 │ │ │ │ libsqlite          ┆ 3.47.0    ┆ hadc24fc_1         ┆ conda-forge ┆ 854.83 KiB │
 │ │ │ │ libstdcxx          ┆ 14.2.0    ┆ hc0a3c3a_1         ┆ conda-forge ┆ 3.71 MiB   │
 │ │ │ │ libstdcxx-ng       ┆ 14.2.0    ┆ h4852527_1         ┆ conda-forge ┆ 52.84 KiB  │
 │ │ │ │ libuuid            ┆ 2.38.1    ┆ h0b41bf4_0         ┆ conda-forge ┆ 32.81 KiB  │
 │ │ │ │ libxcrypt          ┆ 4.4.36    ┆ hd590300_1         ┆ conda-forge ┆ 98.04 KiB  │
 │ │ │ │ libzlib            ┆ 1.3.1     ┆ hb9d3cd8_2         ┆ conda-forge ┆ 59.53 KiB  │
 │ │ │ │ meson              ┆ 1.6.0     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 642.02 KiB │
 │ │ │ │ meson-python       ┆ 0.17.1    ┆ pyh4616a5c_1       ┆ .tmpdnh5aK  ┆ 29.79 KiB  │
 │ │ │ │ ncurses            ┆ 6.5       ┆ he02047a_1         ┆ conda-forge ┆ 868.25 KiB │
 │ │ │ │ ninja              ┆ 1.12.1    ┆ h297d8ca_0         ┆ conda-forge ┆ 2.10 MiB   │
 │ │ │ │ openssl            ┆ 3.3.2     ┆ hb9d3cd8_0         ┆ conda-forge ┆ 2.76 MiB   │
 │ │ │ │ packaging          ┆ 24.1      ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 49.11 KiB  │
 │ │ │ │ pip                ┆ 24.3.1    ┆ pyh8b19718_0       ┆ conda-forge ┆ 1.19 MiB   │
 │ │ │ │ pyproject-metadata ┆ 0.9.0     ┆ pyh2cfa8aa_0       ┆ conda-forge ┆ 20.85 KiB  │
 │ │ │ │ python             ┆ 3.12.7    ┆ hc5c86c4_0_cpython ┆ conda-forge ┆ 30.11 MiB  │
 │ │ │ │ readline           ┆ 8.2       ┆ h8228510_1         ┆ conda-forge ┆ 274.86 KiB │
 │ │ │ │ setuptools         ┆ 75.3.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 761.29 KiB │
 │ │ │ │ tk                 ┆ 8.6.13    ┆ noxft_h4845f30_101 ┆ conda-forge ┆ 3.17 MiB   │
 │ │ │ │ tomli              ┆ 2.0.2     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 17.78 KiB  │
 │ │ │ │ tzdata             ┆ 2024b     ┆ hc8b5060_0         ┆ conda-forge ┆ 119.49 KiB │
 │ │ │ │ wheel              ┆ 0.44.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 57.21 KiB  │
 │ │ │ │ xz                 ┆ 5.2.6     ┆ h166bdaf_0         ┆ conda-forge ┆ 408.56 KiB │
 │ │ │ ╰────────────────────┴───────────┴────────────────────┴─────────────┴────────────╯
 │ │ │ 
 │ │ │ Installing test environment
 │ │ │ ✔ Successfully updated the test environment
 │ │ │ + python $SRC_DIR/conda_build_script.py
 │ │ │ ✔ python imports test passed!
 │ │ │ + pip check
 │ │ │ No broken requirements found.
 │ │ │ ✔ pip check passed!
 │ │ │
 │ │ ╰─────────────────── (took 1 second)
 │ │
 │ │ ╭─ Running script test
 │ │ │ 
 │ │ │ Resolving test environment:
 │ │ │   Platform: linux-64 [__unix=0=0, __linux=6.11.5=0, __glibc=2.40=0, __cuda=12.7=0, __archspec=1=skylake_avx512]
 │ │ │   Channels: 
 │ │ │    - file:///tmp/.tmpdnh5aK/
 │ │ │    - file:///home/rgommers/code/tmp/meson-python-feedstock/output/
 │ │ │    - conda-forge
 │ │ │   Specs:
 │ │ │    - gcc_linux-64
 │ │ │    - cython
 │ │ │    - git
 │ │ │    - gitpython
 │ │ │    - patchelf
 │ │ │    - pip
 │ │ │    - pytest
 │ │ │    - pytest-mock
 │ │ │    - wheel
 │ │ │    - meson-python ==0.17.1 pyh4616a5c_1
 │ │ │ 
 │ │ │ ╭─────────────────────────┬──────────────┬────────────────────┬─────────────┬────────────╮
 │ │ │ │ Package                 ┆ Version      ┆ Build              ┆ Channel     ┆ Size       │
 │ │ │ ╞═════════════════════════╪══════════════╪════════════════════╪═════════════╪════════════╡
 │ │ │ │ _libgcc_mutex           ┆ 0.1          ┆ conda_forge        ┆ conda-forge ┆ 2.50 KiB   │
 │ │ │ │ _openmp_mutex           ┆ 4.5          ┆ 2_gnu              ┆ conda-forge ┆ 23.07 KiB  │
 │ │ │ │ binutils_impl_linux-64  ┆ 2.43         ┆ h4bf12b8_2         ┆ conda-forge ┆ 5.42 MiB   │
 │ │ │ │ binutils_linux-64       ┆ 2.43         ┆ h4852527_2         ┆ conda-forge ┆ 34.13 KiB  │
 │ │ │ │ bzip2                   ┆ 1.0.8        ┆ h4bc722e_7         ┆ conda-forge ┆ 246.86 KiB │
 │ │ │ │ c-ares                  ┆ 1.34.2       ┆ heb4867d_0         ┆ conda-forge ┆ 200.97 KiB │
 │ │ │ │ ca-certificates         ┆ 2024.8.30    ┆ hbcca054_0         ┆ conda-forge ┆ 155.28 KiB │
 │ │ │ │ colorama                ┆ 0.4.6        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 24.58 KiB  │
 │ │ │ │ cython                  ┆ 3.0.11       ┆ py312h8fd2918_3    ┆ conda-forge ┆ 3.58 MiB   │
 │ │ │ │ exceptiongroup          ┆ 1.2.2        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 19.94 KiB  │
 │ │ │ │ gcc_impl_linux-64       ┆ 14.2.0       ┆ h6b349bd_1         ┆ conda-forge ┆ 69.14 MiB  │
 │ │ │ │ gcc_linux-64            ┆ 14.2.0       ┆ h5910c8f_5         ┆ conda-forge ┆ 31.03 KiB  │
 │ │ │ │ git                     ┆ 2.47.0       ┆ pl5321h59d505e_0   ┆ conda-forge ┆ 10.02 MiB  │
 │ │ │ │ gitdb                   ┆ 4.0.11       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 51.63 KiB  │
 │ │ │ │ gitpython               ┆ 3.1.43       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 153.15 KiB │
 │ │ │ │ iniconfig               ┆ 2.0.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 10.84 KiB  │
 │ │ │ │ kernel-headers_linux-64 ┆ 3.10.0       ┆ he073ed8_18        ┆ conda-forge ┆ 921.37 KiB │
 │ │ │ │ keyutils                ┆ 1.6.1        ┆ h166bdaf_0         ┆ conda-forge ┆ 115.07 KiB │
 │ │ │ │ krb5                    ┆ 1.21.3       ┆ h659f571_0         ┆ conda-forge ┆ 1.31 MiB   │
 │ │ │ │ ld_impl_linux-64        ┆ 2.43         ┆ h712a8e2_2         ┆ conda-forge ┆ 653.53 KiB │
 │ │ │ │ libcurl                 ┆ 8.11.0       ┆ hbbe4b11_0         ┆ conda-forge ┆ 412.03 KiB │
 │ │ │ │ libedit                 ┆ 3.1.20191231 ┆ he28a2e2_2         ┆ conda-forge ┆ 120.97 KiB │
 │ │ │ │ libev                   ┆ 4.33         ┆ hd590300_2         ┆ conda-forge ┆ 110.12 KiB │
 │ │ │ │ libexpat                ┆ 2.6.3        ┆ h5888daf_0         ┆ conda-forge ┆ 71.89 KiB  │
 │ │ │ │ libffi                  ┆ 3.4.2        ┆ h7f98852_5         ┆ conda-forge ┆ 56.93 KiB  │
 │ │ │ │ libgcc                  ┆ 14.2.0       ┆ h77fa898_1         ┆ conda-forge ┆ 828.85 KiB │
 │ │ │ │ libgcc-devel_linux-64   ┆ 14.2.0       ┆ h41c2201_101       ┆ conda-forge ┆ 2.63 MiB   │
 │ │ │ │ libgcc-ng               ┆ 14.2.0       ┆ h69a702a_1         ┆ conda-forge ┆ 52.87 KiB  │
 │ │ │ │ libgomp                 ┆ 14.2.0       ┆ h77fa898_1         ┆ conda-forge ┆ 450.19 KiB │
 │ │ │ │ libiconv                ┆ 1.17         ┆ hd590300_2         ┆ conda-forge ┆ 689.23 KiB │
 │ │ │ │ libnghttp2              ┆ 1.64.0       ┆ h161d5f1_0         ┆ conda-forge ┆ 632.42 KiB │
 │ │ │ │ libnsl                  ┆ 2.0.1        ┆ hd590300_0         ┆ conda-forge ┆ 32.62 KiB  │
 │ │ │ │ libsanitizer            ┆ 14.2.0       ┆ h2a3dede_1         ┆ conda-forge ┆ 4.29 MiB   │
 │ │ │ │ libsqlite               ┆ 3.47.0       ┆ hadc24fc_1         ┆ conda-forge ┆ 854.83 KiB │
 │ │ │ │ libssh2                 ┆ 1.11.0       ┆ h0841786_0         ┆ conda-forge ┆ 264.78 KiB │
 │ │ │ │ libstdcxx               ┆ 14.2.0       ┆ hc0a3c3a_1         ┆ conda-forge ┆ 3.71 MiB   │
 │ │ │ │ libstdcxx-ng            ┆ 14.2.0       ┆ h4852527_1         ┆ conda-forge ┆ 52.84 KiB  │
 │ │ │ │ libuuid                 ┆ 2.38.1       ┆ h0b41bf4_0         ┆ conda-forge ┆ 32.81 KiB  │
 │ │ │ │ libxcrypt               ┆ 4.4.36       ┆ hd590300_1         ┆ conda-forge ┆ 98.04 KiB  │
 │ │ │ │ libzlib                 ┆ 1.3.1        ┆ hb9d3cd8_2         ┆ conda-forge ┆ 59.53 KiB  │
 │ │ │ │ meson                   ┆ 1.6.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 642.02 KiB │
 │ │ │ │ meson-python            ┆ 0.17.1       ┆ pyh4616a5c_1       ┆ .tmpdnh5aK  ┆ 29.79 KiB  │
 │ │ │ │ ncurses                 ┆ 6.5          ┆ he02047a_1         ┆ conda-forge ┆ 868.25 KiB │
 │ │ │ │ ninja                   ┆ 1.12.1       ┆ h297d8ca_0         ┆ conda-forge ┆ 2.10 MiB   │
 │ │ │ │ openssl                 ┆ 3.3.2        ┆ hb9d3cd8_0         ┆ conda-forge ┆ 2.76 MiB   │
 │ │ │ │ packaging               ┆ 24.1         ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 49.11 KiB  │
 │ │ │ │ patchelf                ┆ 0.17.2       ┆ h58526e2_0         ┆ conda-forge ┆ 91.84 KiB  │
 │ │ │ │ pcre2                   ┆ 10.44        ┆ hba22ea6_2         ┆ conda-forge ┆ 929.99 KiB │
 │ │ │ │ perl                    ┆ 5.32.1       ┆ 7_hd590300_perl5   ┆ conda-forge ┆ 12.73 MiB  │
 │ │ │ │ pip                     ┆ 24.3.1       ┆ pyh8b19718_0       ┆ conda-forge ┆ 1.19 MiB   │
 │ │ │ │ pluggy                  ┆ 1.5.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 23.26 KiB  │
 │ │ │ │ pyproject-metadata      ┆ 0.9.0        ┆ pyh2cfa8aa_0       ┆ conda-forge ┆ 20.85 KiB  │
 │ │ │ │ pytest                  ┆ 8.3.3        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 252.24 KiB │
 │ │ │ │ pytest-mock             ┆ 3.14.0       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 21.35 KiB  │
 │ │ │ │ python                  ┆ 3.12.7       ┆ hc5c86c4_0_cpython ┆ conda-forge ┆ 30.11 MiB  │
 │ │ │ │ python_abi              ┆ 3.12         ┆ 5_cp312            ┆ conda-forge ┆ 6.09 KiB   │
 │ │ │ │ readline                ┆ 8.2          ┆ h8228510_1         ┆ conda-forge ┆ 274.86 KiB │
 │ │ │ │ setuptools              ┆ 75.3.0       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 761.29 KiB │
 │ │ │ │ smmap                   ┆ 5.0.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 21.96 KiB  │
 │ │ │ │ sysroot_linux-64        ┆ 2.17         ┆ h4a8ded7_18        ┆ conda-forge ┆ 14.78 MiB  │
 │ │ │ │ tk                      ┆ 8.6.13       ┆ noxft_h4845f30_101 ┆ conda-forge ┆ 3.17 MiB   │
 │ │ │ │ tomli                   ┆ 2.0.2        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 17.78 KiB  │
 │ │ │ │ typing_extensions       ┆ 4.12.2       ┆ pyha770c72_0       ┆ conda-forge ┆ 38.95 KiB  │
 │ │ │ │ tzdata                  ┆ 2024b        ┆ hc8b5060_0         ┆ conda-forge ┆ 119.49 KiB │
 │ │ │ │ wheel                   ┆ 0.44.0       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 57.21 KiB  │
 │ │ │ │ xz                      ┆ 5.2.6        ┆ h166bdaf_0         ┆ conda-forge ┆ 408.56 KiB │
 │ │ │ │ zstd                    ┆ 1.5.6        ┆ ha6fb4c9_0         ┆ conda-forge ┆ 541.84 KiB │
 │ │ │ ╰─────────────────────────┴──────────────┴────────────────────┴─────────────┴────────────╯
 │ │ │ 
 │ │ │ Installing test environment
 │ │ │ ✔ Successfully updated the test environment
 │ │ │ Testing commands:
 │ │ │ + pip check
 │ │ │ No broken requirements found.
 │ │ │ + export 'CPPFLAGS= -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
 │ │ │ + CPPFLAGS=' -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
 │ │ │ + echo
 │ │ │ + ls -a .
 │ │ │ .
 │ │ │ ..
 │ │ │ build_env.sh
 │ │ │ + pytest ./tests -vv
 │ │ │ conda_build.sh
 │ │ │ info
 │ │ │ site-packages
 │ │ │ ============================= test session starts ==============================
 │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- $PREFIX/bin/python3.12
 │ │ │ cachedir: .pytest_cache
 │ │ │ rootdir: $SRC_DIR
 │ │ │ plugins: mock-3.14.0
 │ │ │ ERROR: file or directory not found: ./tests
 │ │ │ collecting ... collected 0 items
 │ │ │ ============================ no tests ran in 0.00s =============================
 │ │ │ × error Script failed with status 4
 │ │ │ × error Work directory: '/tmp/.tmpzY2Nqn'
 │ │ │ × error To debug the build, run it manually in the work directory (execute the `./conda_build.sh` or `conda_build.bat` sc
 │ │ │ × error ript)
 │ │ │
 │ │ ╰─────────────────── (took 3 seconds)
 │ │
 │ ╰─────────────────── (took 4 seconds)
 │
 ╰─────────────────── (took 9 seconds)
Error:   × failed to run test: Script failed

(conda-recipe-mgr) ~/code/tmp/meson-python-feedstock (use-rattler-build)$ cd recipe/
(conda-recipe-mgr) ~/code/tmp/meson-python-feedstock/recipe (use-rattler-build)$ cd ..
(conda-recipe-mgr) ~/code/tmp/meson-python-feedstock (use-rattler-build)$ rattler-build build --recipe recipe

 ╭─ Finding outputs from recipe
 │ Found 1 variants
 │ Build variant: meson-python-0.17.1-pyh4616a5c_1
 │ 
 │ ╭─────────────────┬─────────╮
 │ │ Variant         ┆ Version │
 │ ╞═════════════════╪═════════╡
 │ │ target_platform ┆ noarch  │
 │ ╰─────────────────┴─────────╯
 │
 ╰─────────────────── (took 0 seconds)

 ╭─ Running build for recipe: meson-python-0.17.1-pyh4616a5c_1
 │
 │ ╭─ Fetching source code
 │ │ Validated SHA256 values of the downloaded file!
 │ │ Found valid source cache file.
 │ │ Using extracted directory from cache: /home/rgommers/code/tmp/meson-python-feedstock/output/src_cache/0_17_1_d5333564
 │ │ Copying source from url: /home/rgommers/code/tmp/meson-python-feedstock/output/src_cache/0_17_1_d5333564 to /home/rgommers
 │ │ /code/tmp/meson-python-feedstock/output/bld/rattler-build_meson-python_1730926975/work
 │ │
 │ ╰─────────────────── (took 0 seconds)
 │
 │ ╭─ Resolving environments
 │ │ 
 │ │ Resolving host environment:
 │ │   Platform: linux-64 [__unix=0=0, __linux=6.11.5=0, __glibc=2.40=0, __cuda=12.7=0, __archspec=1=skylake_avx512]
 │ │   Channels: 
 │ │    - file:///home/rgommers/code/tmp/meson-python-feedstock/output/
 │ │    - conda-forge
 │ │   Specs:
 │ │    - meson >=0.63.3
 │ │    - ninja
 │ │    - packaging >=19.0
 │ │    - pyproject-metadata >=0.7.1
 │ │    - pip
 │ │    - python >=3.7
 │ │    - tomli >=1.0.0
 │ │ 
 │ │ ╭────────────────────┬───────────┬────────────────────┬─────────────┬────────────╮
 │ │ │ Package            ┆ Version   ┆ Build              ┆ Channel     ┆ Size       │
 │ │ ╞════════════════════╪═══════════╪════════════════════╪═════════════╪════════════╡
 │ │ │ _libgcc_mutex      ┆ 0.1       ┆ conda_forge        ┆ conda-forge ┆ 2.50 KiB   │
 │ │ │ _openmp_mutex      ┆ 4.5       ┆ 2_gnu              ┆ conda-forge ┆ 23.07 KiB  │
 │ │ │ bzip2              ┆ 1.0.8     ┆ h4bc722e_7         ┆ conda-forge ┆ 246.86 KiB │
 │ │ │ ca-certificates    ┆ 2024.8.30 ┆ hbcca054_0         ┆ conda-forge ┆ 155.28 KiB │
 │ │ │ ld_impl_linux-64   ┆ 2.43      ┆ h712a8e2_2         ┆ conda-forge ┆ 653.53 KiB │
 │ │ │ libexpat           ┆ 2.6.3     ┆ h5888daf_0         ┆ conda-forge ┆ 71.89 KiB  │
 │ │ │ libffi             ┆ 3.4.2     ┆ h7f98852_5         ┆ conda-forge ┆ 56.93 KiB  │
 │ │ │ libgcc             ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 828.85 KiB │
 │ │ │ libgcc-ng          ┆ 14.2.0    ┆ h69a702a_1         ┆ conda-forge ┆ 52.87 KiB  │
 │ │ │ libgomp            ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 450.19 KiB │
 │ │ │ libnsl             ┆ 2.0.1     ┆ hd590300_0         ┆ conda-forge ┆ 32.62 KiB  │
 │ │ │ libsqlite          ┆ 3.47.0    ┆ hadc24fc_1         ┆ conda-forge ┆ 854.83 KiB │
 │ │ │ libstdcxx          ┆ 14.2.0    ┆ hc0a3c3a_1         ┆ conda-forge ┆ 3.71 MiB   │
 │ │ │ libstdcxx-ng       ┆ 14.2.0    ┆ h4852527_1         ┆ conda-forge ┆ 52.84 KiB  │
 │ │ │ libuuid            ┆ 2.38.1    ┆ h0b41bf4_0         ┆ conda-forge ┆ 32.81 KiB  │
 │ │ │ libxcrypt          ┆ 4.4.36    ┆ hd590300_1         ┆ conda-forge ┆ 98.04 KiB  │
 │ │ │ libzlib            ┆ 1.3.1     ┆ hb9d3cd8_2         ┆ conda-forge ┆ 59.53 KiB  │
 │ │ │ meson              ┆ 1.6.0     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 642.02 KiB │
 │ │ │ ncurses            ┆ 6.5       ┆ he02047a_1         ┆ conda-forge ┆ 868.25 KiB │
 │ │ │ ninja              ┆ 1.12.1    ┆ h297d8ca_0         ┆ conda-forge ┆ 2.10 MiB   │
 │ │ │ openssl            ┆ 3.3.2     ┆ hb9d3cd8_0         ┆ conda-forge ┆ 2.76 MiB   │
 │ │ │ packaging          ┆ 24.1      ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 49.11 KiB  │
 │ │ │ pip                ┆ 24.3.1    ┆ pyh8b19718_0       ┆ conda-forge ┆ 1.19 MiB   │
 │ │ │ pyproject-metadata ┆ 0.9.0     ┆ pyh2cfa8aa_0       ┆ conda-forge ┆ 20.85 KiB  │
 │ │ │ python             ┆ 3.12.7    ┆ hc5c86c4_0_cpython ┆ conda-forge ┆ 30.11 MiB  │
 │ │ │ readline           ┆ 8.2       ┆ h8228510_1         ┆ conda-forge ┆ 274.86 KiB │
 │ │ │ setuptools         ┆ 75.3.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 761.29 KiB │
 │ │ │ tk                 ┆ 8.6.13    ┆ noxft_h4845f30_101 ┆ conda-forge ┆ 3.17 MiB   │
 │ │ │ tomli              ┆ 2.0.2     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 17.78 KiB  │
 │ │ │ tzdata             ┆ 2024b     ┆ hc8b5060_0         ┆ conda-forge ┆ 119.49 KiB │
 │ │ │ wheel              ┆ 0.44.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 57.21 KiB  │
 │ │ │ xz                 ┆ 5.2.6     ┆ h166bdaf_0         ┆ conda-forge ┆ 408.56 KiB │
 │ │ ╰────────────────────┴───────────┴────────────────────┴─────────────┴────────────╯
 │ │ 
 │ │ Finalized run dependencies:
 │ │ ╭────────────────────┬────────────────────────╮
 │ │ │ Name               ┆ Spec                   │
 │ │ ╞════════════════════╪════════════════════════╡
 │ │ │ Run dependencies   ┆                        │
 │ │ │ meson              ┆ >=0.63.3               │
 │ │ │ ninja              ┆                        │
 │ │ │ packaging          ┆ >=19.0                 │
 │ │ │ pyproject-metadata ┆ >=0.7.1                │
 │ │ │ python             ┆ >=3.7                  │
 │ │ │ tomli              ┆ >=1.0.0                │
 │ │ │ python             ┆ (RE of [host: python]) │
 │ │ ╰────────────────────┴────────────────────────╯
 │ │
 │ ╰─────────────────── (took 7 seconds)
 │ 
 │ Installing build environment
 │ ✔ Successfully updated the build environment
 │ 
 │ Installing host environment
 │ ✔ Successfully updated the host environment
 │
 │ ╭─ Running build script
 │ │ + $PREFIX/bin/python -m pip install . -vv
 │ │ Using pip 24.3.1 from $PREFIX/lib/python3.12/site-packages/pip (python 3.12)
 │ │ Non-user install because user site-packages disabled
 │ │ Ignoring indexes: https://pypi.org/simple
 │ │ Created temporary directory: /tmp/pip-build-tracker-_81d6bv8
 │ │ Initialized build tracking at /tmp/pip-build-tracker-_81d6bv8
 │ │ Created build tracker: /tmp/pip-build-tracker-_81d6bv8
 │ │ Entered build tracker: /tmp/pip-build-tracker-_81d6bv8
 │ │ Created temporary directory: /tmp/pip-install-p5r2f4m9
 │ │ Created temporary directory: /tmp/pip-ephem-wheel-cache-ae7eljds
 │ │ Processing $SRC_DIR
 │ │   Added file://$SRC_DIR to build tracker '/tmp/pip-build-tracker-_81d6bv8'
 │ │   Created temporary directory: /tmp/pip-modern-metadata-s6zduign
 │ │   Preparing metadata (pyproject.toml): started
 │ │   Running command Preparing metadata (pyproject.toml)
 │ │   + meson setup $SRC_DIR $SRC_DIR/.mesonpy-fohhzghq -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=$
 │ │ SRC_DIR/.mesonpy-fohhzghq/meson-python-native-file.ini
 │ │   The Meson build system
 │ │   Version: 1.6.0
 │ │   Source dir: $SRC_DIR
 │ │   Build dir: $SRC_DIR/.mesonpy-fohhzghq
 │ │   Build type: native build
 │ │   Project name: meson-python
 │ │   Project version: 0.17.1
 │ │   Host machine cpu family: x86_64
 │ │   Host machine cpu: x86_64
 │ │   Program python found: YES ($PREFIX/bin/python)
 │ │   Build targets in project: 0
 │ │   meson-python 0.17.1
 │ │     User defined options
 │ │       Native files: $SRC_DIR/.mesonpy-fohhzghq/meson-python-native-file.ini
 │ │       b_ndebug    : if-release
 │ │       b_vscrt     : md
 │ │       buildtype   : release
 │ │   Found ninja-1.12.1 at $PREFIX/bin/ninja
 │ │   + $PREFIX/bin/ninja
 │ │   ninja: no work to do.
 │ │   [1/7] $SRC_DIR/mesonpy/__init__.py
 │ │   [2/7] $SRC_DIR/mesonpy/_compat.py
 │ │   [3/7] $SRC_DIR/mesonpy/_editable.py
 │ │   [4/7] $SRC_DIR/mesonpy/_rpath.py
 │ │   [5/7] $SRC_DIR/mesonpy/_tags.py
 │ │   [6/7] $SRC_DIR/mesonpy/_util.py
 │ │   [7/7] $SRC_DIR/mesonpy/_wheelfile.py
 │ │   Preparing metadata (pyproject.toml): finished with status 'done'
 │ │   Source in $SRC_DIR has version 0.17.1, which satisfies requirement meson-python==0.17.1 from file://$SRC_DIR
 │ │   Removed meson-python==0.17.1 from file://$SRC_DIR from build tracker '/tmp/pip-build-tracker-_81d6bv8'
 │ │ Created temporary directory: /tmp/pip-unpack-gi1dl8p9
 │ │ Building wheels for collected packages: meson-python
 │ │   Created temporary directory: /tmp/pip-wheel-mj6okwai
 │ │   Destination directory: /tmp/pip-wheel-mj6okwai
 │ │   Building wheel for meson-python (pyproject.toml): started
 │ │   Running command Building wheel for meson-python (pyproject.toml)
 │ │   Building wheel for meson-python (pyproject.toml): finished with status 'done'
 │ │   Created wheel for meson-python: filename=meson_python-0.17.1-py3-none-any.whl size=27514 sha256=c53063974c200ee7b6b5dec4
 │ │ 524a3eb7e7b1b8e326a07778e24f561de2165e0c
 │ │   Stored in directory: /tmp/pip-ephem-wheel-cache-ae7eljds/wheels/52/66/13/468e6c072921cbfbeb7a2915563162eb0fe346e1f757ec5
 │ │ 0be
 │ │ Successfully built meson-python
 │ │ Installing collected packages: meson-python
 │ │ Successfully installed meson-python-0.17.1
 │ │ Removed build tracker: '/tmp/pip-build-tracker-_81d6bv8'
 │ │
 │ ╰─────────────────── (took 2 seconds)
 │
 │ ╭─ Packaging new files
 │ │ Copying done!
 │ │ Post-processing done!
 │ │ Writing test files
 │ │ Writing metadata for package
 │ │ Copying license files
 │ │ Copying recipe files
 │ │ Creating entry points
 │ │ 
 │ │ Files in package:
 │ │   - site-packages/meson_python-0.17.1.dist-info/INSTALLER
 │ │   - site-packages/meson_python-0.17.1.dist-info/METADATA
 │ │   - site-packages/meson_python-0.17.1.dist-info/MIT.txt
 │ │   - site-packages/meson_python-0.17.1.dist-info/RECORD
 │ │   - site-packages/meson_python-0.17.1.dist-info/REQUESTED
 │ │   - site-packages/meson_python-0.17.1.dist-info/WHEEL
 │ │   - site-packages/meson_python-0.17.1.dist-info/direct_url.json
 │ │   - site-packages/mesonpy/__init__.py
 │ │   - site-packages/mesonpy/_compat.py
 │ │   - site-packages/mesonpy/_editable.py
 │ │   - site-packages/mesonpy/_rpath.py
 │ │   - site-packages/mesonpy/_tags.py
 │ │   - site-packages/mesonpy/_util.py
 │ │   - site-packages/mesonpy/_wheelfile.py
 │ │   - info/about.json
 │ │   - info/hash_input.json
 │ │   - info/index.json
 │ │   - info/licenses/LICENSE
 │ │   - info/link.json
 │ │   - info/paths.json
 │ │   - info/recipe/recipe.yaml
 │ │   - info/recipe/rendered_recipe.yaml
 │ │   - info/recipe/variant_config.yaml
 │ │   - info/tests/tests.yaml
 │ │ Creating target folder '/home/rgommers/code/tmp/meson-python-feedstock/output/noarch'
 │ │ Creating empty build folder "/home/rgommers/code/tmp/meson-python-feedstock/output/linux-64"
 │ │ Compressing archive...
 │ │ Archive written to '/home/rgommers/code/tmp/meson-python-feedstock/output/noarch/meson-python-0.17.1-pyh4616a5c_1.conda'
 │ │
 │ ╰─────────────────── (took 0 seconds)
 │
 │ ╭─ Running package tests
 │ │ Removing previously cached package '/home/rgommers/.cache/rattler/cache/pkgs/meson-python-0.17.1-pyh4616a5c_1'
 │ │ Creating test environment in '/home/rgommers/code/tmp/meson-python-feedstock/output/bld/rattler-build_meson-python_1730926
 │ │ 975/work/test'
 │ │ Collecting tests from '/home/rgommers/.cache/rattler/cache/pkgs/meson-python-0.17.1-pyh4616a5c_1'
 │ │
 │ │ ╭─ Running python test
 │ │ │ 
 │ │ │ Resolving test environment:
 │ │ │   Platform: linux-64 [__unix=0=0, __linux=6.11.5=0, __glibc=2.40=0, __cuda=12.7=0, __archspec=1=skylake_avx512]
 │ │ │   Channels: 
 │ │ │    - file:///tmp/.tmpsW1doO/
 │ │ │    - file:///home/rgommers/code/tmp/meson-python-feedstock/output/
 │ │ │    - conda-forge
 │ │ │   Specs:
 │ │ │    - meson-python ==0.17.1 pyh4616a5c_1
 │ │ │    - pip
 │ │ │ 
 │ │ │ ╭────────────────────┬───────────┬────────────────────┬─────────────┬────────────╮
 │ │ │ │ Package            ┆ Version   ┆ Build              ┆ Channel     ┆ Size       │
 │ │ │ ╞════════════════════╪═══════════╪════════════════════╪═════════════╪════════════╡
 │ │ │ │ _libgcc_mutex      ┆ 0.1       ┆ conda_forge        ┆ conda-forge ┆ 2.50 KiB   │
 │ │ │ │ _openmp_mutex      ┆ 4.5       ┆ 2_gnu              ┆ conda-forge ┆ 23.07 KiB  │
 │ │ │ │ bzip2              ┆ 1.0.8     ┆ h4bc722e_7         ┆ conda-forge ┆ 246.86 KiB │
 │ │ │ │ ca-certificates    ┆ 2024.8.30 ┆ hbcca054_0         ┆ conda-forge ┆ 155.28 KiB │
 │ │ │ │ ld_impl_linux-64   ┆ 2.43      ┆ h712a8e2_2         ┆ conda-forge ┆ 653.53 KiB │
 │ │ │ │ libexpat           ┆ 2.6.3     ┆ h5888daf_0         ┆ conda-forge ┆ 71.89 KiB  │
 │ │ │ │ libffi             ┆ 3.4.2     ┆ h7f98852_5         ┆ conda-forge ┆ 56.93 KiB  │
 │ │ │ │ libgcc             ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 828.85 KiB │
 │ │ │ │ libgcc-ng          ┆ 14.2.0    ┆ h69a702a_1         ┆ conda-forge ┆ 52.87 KiB  │
 │ │ │ │ libgomp            ┆ 14.2.0    ┆ h77fa898_1         ┆ conda-forge ┆ 450.19 KiB │
 │ │ │ │ libnsl             ┆ 2.0.1     ┆ hd590300_0         ┆ conda-forge ┆ 32.62 KiB  │
 │ │ │ │ libsqlite          ┆ 3.47.0    ┆ hadc24fc_1         ┆ conda-forge ┆ 854.83 KiB │
 │ │ │ │ libstdcxx          ┆ 14.2.0    ┆ hc0a3c3a_1         ┆ conda-forge ┆ 3.71 MiB   │
 │ │ │ │ libstdcxx-ng       ┆ 14.2.0    ┆ h4852527_1         ┆ conda-forge ┆ 52.84 KiB  │
 │ │ │ │ libuuid            ┆ 2.38.1    ┆ h0b41bf4_0         ┆ conda-forge ┆ 32.81 KiB  │
 │ │ │ │ libxcrypt          ┆ 4.4.36    ┆ hd590300_1         ┆ conda-forge ┆ 98.04 KiB  │
 │ │ │ │ libzlib            ┆ 1.3.1     ┆ hb9d3cd8_2         ┆ conda-forge ┆ 59.53 KiB  │
 │ │ │ │ meson              ┆ 1.6.0     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 642.02 KiB │
 │ │ │ │ meson-python       ┆ 0.17.1    ┆ pyh4616a5c_1       ┆ .tmpsW1doO  ┆ 29.78 KiB  │
 │ │ │ │ ncurses            ┆ 6.5       ┆ he02047a_1         ┆ conda-forge ┆ 868.25 KiB │
 │ │ │ │ ninja              ┆ 1.12.1    ┆ h297d8ca_0         ┆ conda-forge ┆ 2.10 MiB   │
 │ │ │ │ openssl            ┆ 3.3.2     ┆ hb9d3cd8_0         ┆ conda-forge ┆ 2.76 MiB   │
 │ │ │ │ packaging          ┆ 24.1      ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 49.11 KiB  │
 │ │ │ │ pip                ┆ 24.3.1    ┆ pyh8b19718_0       ┆ conda-forge ┆ 1.19 MiB   │
 │ │ │ │ pyproject-metadata ┆ 0.9.0     ┆ pyh2cfa8aa_0       ┆ conda-forge ┆ 20.85 KiB  │
 │ │ │ │ python             ┆ 3.12.7    ┆ hc5c86c4_0_cpython ┆ conda-forge ┆ 30.11 MiB  │
 │ │ │ │ readline           ┆ 8.2       ┆ h8228510_1         ┆ conda-forge ┆ 274.86 KiB │
 │ │ │ │ setuptools         ┆ 75.3.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 761.29 KiB │
 │ │ │ │ tk                 ┆ 8.6.13    ┆ noxft_h4845f30_101 ┆ conda-forge ┆ 3.17 MiB   │
 │ │ │ │ tomli              ┆ 2.0.2     ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 17.78 KiB  │
 │ │ │ │ tzdata             ┆ 2024b     ┆ hc8b5060_0         ┆ conda-forge ┆ 119.49 KiB │
 │ │ │ │ wheel              ┆ 0.44.0    ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 57.21 KiB  │
 │ │ │ │ xz                 ┆ 5.2.6     ┆ h166bdaf_0         ┆ conda-forge ┆ 408.56 KiB │
 │ │ │ ╰────────────────────┴───────────┴────────────────────┴─────────────┴────────────╯
 │ │ │ 
 │ │ │ Installing test environment
 │ │ │ ✔ Successfully updated the test environment
 │ │ │ + python $SRC_DIR/conda_build_script.py
 │ │ │ ✔ python imports test passed!
 │ │ │ + pip check
 │ │ │ No broken requirements found.
 │ │ │ ✔ pip check passed!
 │ │ │
 │ │ ╰─────────────────── (took 1 second)
 │ │
 │ │ ╭─ Running script test
 │ │ │ 
 │ │ │ Resolving test environment:
 │ │ │   Platform: linux-64 [__unix=0=0, __linux=6.11.5=0, __glibc=2.40=0, __cuda=12.7=0, __archspec=1=skylake_avx512]
 │ │ │   Channels: 
 │ │ │    - file:///tmp/.tmpsW1doO/
 │ │ │    - file:///home/rgommers/code/tmp/meson-python-feedstock/output/
 │ │ │    - conda-forge
 │ │ │   Specs:
 │ │ │    - gcc_linux-64
 │ │ │    - cython
 │ │ │    - git
 │ │ │    - gitpython
 │ │ │    - patchelf
 │ │ │    - pip
 │ │ │    - pytest
 │ │ │    - pytest-mock
 │ │ │    - wheel
 │ │ │    - meson-python ==0.17.1 pyh4616a5c_1
 │ │ │ 
 │ │ │ ╭─────────────────────────┬──────────────┬────────────────────┬─────────────┬────────────╮
 │ │ │ │ Package                 ┆ Version      ┆ Build              ┆ Channel     ┆ Size       │
 │ │ │ ╞═════════════════════════╪══════════════╪════════════════════╪═════════════╪════════════╡
 │ │ │ │ _libgcc_mutex           ┆ 0.1          ┆ conda_forge        ┆ conda-forge ┆ 2.50 KiB   │
 │ │ │ │ _openmp_mutex           ┆ 4.5          ┆ 2_gnu              ┆ conda-forge ┆ 23.07 KiB  │
 │ │ │ │ binutils_impl_linux-64  ┆ 2.43         ┆ h4bf12b8_2         ┆ conda-forge ┆ 5.42 MiB   │
 │ │ │ │ binutils_linux-64       ┆ 2.43         ┆ h4852527_2         ┆ conda-forge ┆ 34.13 KiB  │
 │ │ │ │ bzip2                   ┆ 1.0.8        ┆ h4bc722e_7         ┆ conda-forge ┆ 246.86 KiB │
 │ │ │ │ c-ares                  ┆ 1.34.2       ┆ heb4867d_0         ┆ conda-forge ┆ 200.97 KiB │
 │ │ │ │ ca-certificates         ┆ 2024.8.30    ┆ hbcca054_0         ┆ conda-forge ┆ 155.28 KiB │
 │ │ │ │ colorama                ┆ 0.4.6        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 24.58 KiB  │
 │ │ │ │ cython                  ┆ 3.0.11       ┆ py312h8fd2918_3    ┆ conda-forge ┆ 3.58 MiB   │
 │ │ │ │ exceptiongroup          ┆ 1.2.2        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 19.94 KiB  │
 │ │ │ │ gcc_impl_linux-64       ┆ 14.2.0       ┆ h6b349bd_1         ┆ conda-forge ┆ 69.14 MiB  │
 │ │ │ │ gcc_linux-64            ┆ 14.2.0       ┆ h5910c8f_5         ┆ conda-forge ┆ 31.03 KiB  │
 │ │ │ │ git                     ┆ 2.47.0       ┆ pl5321h59d505e_0   ┆ conda-forge ┆ 10.02 MiB  │
 │ │ │ │ gitdb                   ┆ 4.0.11       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 51.63 KiB  │
 │ │ │ │ gitpython               ┆ 3.1.43       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 153.15 KiB │
 │ │ │ │ iniconfig               ┆ 2.0.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 10.84 KiB  │
 │ │ │ │ kernel-headers_linux-64 ┆ 3.10.0       ┆ he073ed8_18        ┆ conda-forge ┆ 921.37 KiB │
 │ │ │ │ keyutils                ┆ 1.6.1        ┆ h166bdaf_0         ┆ conda-forge ┆ 115.07 KiB │
 │ │ │ │ krb5                    ┆ 1.21.3       ┆ h659f571_0         ┆ conda-forge ┆ 1.31 MiB   │
 │ │ │ │ ld_impl_linux-64        ┆ 2.43         ┆ h712a8e2_2         ┆ conda-forge ┆ 653.53 KiB │
 │ │ │ │ libcurl                 ┆ 8.11.0       ┆ hbbe4b11_0         ┆ conda-forge ┆ 412.03 KiB │
 │ │ │ │ libedit                 ┆ 3.1.20191231 ┆ he28a2e2_2         ┆ conda-forge ┆ 120.97 KiB │
 │ │ │ │ libev                   ┆ 4.33         ┆ hd590300_2         ┆ conda-forge ┆ 110.12 KiB │
 │ │ │ │ libexpat                ┆ 2.6.3        ┆ h5888daf_0         ┆ conda-forge ┆ 71.89 KiB  │
 │ │ │ │ libffi                  ┆ 3.4.2        ┆ h7f98852_5         ┆ conda-forge ┆ 56.93 KiB  │
 │ │ │ │ libgcc                  ┆ 14.2.0       ┆ h77fa898_1         ┆ conda-forge ┆ 828.85 KiB │
 │ │ │ │ libgcc-devel_linux-64   ┆ 14.2.0       ┆ h41c2201_101       ┆ conda-forge ┆ 2.63 MiB   │
 │ │ │ │ libgcc-ng               ┆ 14.2.0       ┆ h69a702a_1         ┆ conda-forge ┆ 52.87 KiB  │
 │ │ │ │ libgomp                 ┆ 14.2.0       ┆ h77fa898_1         ┆ conda-forge ┆ 450.19 KiB │
 │ │ │ │ libiconv                ┆ 1.17         ┆ hd590300_2         ┆ conda-forge ┆ 689.23 KiB │
 │ │ │ │ libnghttp2              ┆ 1.64.0       ┆ h161d5f1_0         ┆ conda-forge ┆ 632.42 KiB │
 │ │ │ │ libnsl                  ┆ 2.0.1        ┆ hd590300_0         ┆ conda-forge ┆ 32.62 KiB  │
 │ │ │ │ libsanitizer            ┆ 14.2.0       ┆ h2a3dede_1         ┆ conda-forge ┆ 4.29 MiB   │
 │ │ │ │ libsqlite               ┆ 3.47.0       ┆ hadc24fc_1         ┆ conda-forge ┆ 854.83 KiB │
 │ │ │ │ libssh2                 ┆ 1.11.0       ┆ h0841786_0         ┆ conda-forge ┆ 264.78 KiB │
 │ │ │ │ libstdcxx               ┆ 14.2.0       ┆ hc0a3c3a_1         ┆ conda-forge ┆ 3.71 MiB   │
 │ │ │ │ libstdcxx-ng            ┆ 14.2.0       ┆ h4852527_1         ┆ conda-forge ┆ 52.84 KiB  │
 │ │ │ │ libuuid                 ┆ 2.38.1       ┆ h0b41bf4_0         ┆ conda-forge ┆ 32.81 KiB  │
 │ │ │ │ libxcrypt               ┆ 4.4.36       ┆ hd590300_1         ┆ conda-forge ┆ 98.04 KiB  │
 │ │ │ │ libzlib                 ┆ 1.3.1        ┆ hb9d3cd8_2         ┆ conda-forge ┆ 59.53 KiB  │
 │ │ │ │ meson                   ┆ 1.6.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 642.02 KiB │
 │ │ │ │ meson-python            ┆ 0.17.1       ┆ pyh4616a5c_1       ┆ .tmpsW1doO  ┆ 29.78 KiB  │
 │ │ │ │ ncurses                 ┆ 6.5          ┆ he02047a_1         ┆ conda-forge ┆ 868.25 KiB │
 │ │ │ │ ninja                   ┆ 1.12.1       ┆ h297d8ca_0         ┆ conda-forge ┆ 2.10 MiB   │
 │ │ │ │ openssl                 ┆ 3.3.2        ┆ hb9d3cd8_0         ┆ conda-forge ┆ 2.76 MiB   │
 │ │ │ │ packaging               ┆ 24.1         ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 49.11 KiB  │
 │ │ │ │ patchelf                ┆ 0.17.2       ┆ h58526e2_0         ┆ conda-forge ┆ 91.84 KiB  │
 │ │ │ │ pcre2                   ┆ 10.44        ┆ hba22ea6_2         ┆ conda-forge ┆ 929.99 KiB │
 │ │ │ │ perl                    ┆ 5.32.1       ┆ 7_hd590300_perl5   ┆ conda-forge ┆ 12.73 MiB  │
 │ │ │ │ pip                     ┆ 24.3.1       ┆ pyh8b19718_0       ┆ conda-forge ┆ 1.19 MiB   │
 │ │ │ │ pluggy                  ┆ 1.5.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 23.26 KiB  │
 │ │ │ │ pyproject-metadata      ┆ 0.9.0        ┆ pyh2cfa8aa_0       ┆ conda-forge ┆ 20.85 KiB  │
 │ │ │ │ pytest                  ┆ 8.3.3        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 252.24 KiB │
 │ │ │ │ pytest-mock             ┆ 3.14.0       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 21.35 KiB  │
 │ │ │ │ python                  ┆ 3.12.7       ┆ hc5c86c4_0_cpython ┆ conda-forge ┆ 30.11 MiB  │
 │ │ │ │ python_abi              ┆ 3.12         ┆ 5_cp312            ┆ conda-forge ┆ 6.09 KiB   │
 │ │ │ │ readline                ┆ 8.2          ┆ h8228510_1         ┆ conda-forge ┆ 274.86 KiB │
 │ │ │ │ setuptools              ┆ 75.3.0       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 761.29 KiB │
 │ │ │ │ smmap                   ┆ 5.0.0        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 21.96 KiB  │
 │ │ │ │ sysroot_linux-64        ┆ 2.17         ┆ h4a8ded7_18        ┆ conda-forge ┆ 14.78 MiB  │
 │ │ │ │ tk                      ┆ 8.6.13       ┆ noxft_h4845f30_101 ┆ conda-forge ┆ 3.17 MiB   │
 │ │ │ │ tomli                   ┆ 2.0.2        ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 17.78 KiB  │
 │ │ │ │ typing_extensions       ┆ 4.12.2       ┆ pyha770c72_0       ┆ conda-forge ┆ 38.95 KiB  │
 │ │ │ │ tzdata                  ┆ 2024b        ┆ hc8b5060_0         ┆ conda-forge ┆ 119.49 KiB │
 │ │ │ │ wheel                   ┆ 0.44.0       ┆ pyhd8ed1ab_0       ┆ conda-forge ┆ 57.21 KiB  │
 │ │ │ │ xz                      ┆ 5.2.6        ┆ h166bdaf_0         ┆ conda-forge ┆ 408.56 KiB │
 │ │ │ │ zstd                    ┆ 1.5.6        ┆ ha6fb4c9_0         ┆ conda-forge ┆ 541.84 KiB │
 │ │ │ ╰─────────────────────────┴──────────────┴────────────────────┴─────────────┴────────────╯
 │ │ │ 
 │ │ │ Installing test environment
 │ │ │ ✔ Successfully updated the test environment
 │ │ │ Testing commands:
 │ │ │ + pip check
 │ │ │ No broken requirements found.
 │ │ │ + export 'CPPFLAGS= -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
 │ │ │ + CPPFLAGS=' -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include'
 │ │ │ + echo
 │ │ │ + ls -a .
 │ │ │ .
 │ │ │ ..
 │ │ │ build_env.sh
 │ │ │ conda_build.sh
 │ │ │ info
 │ │ │ site-packages
 │ │ │ + pytest ./tests -vv
 │ │ │ ============================= test session starts ==============================
 │ │ │ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- $PREFIX/bin/python3.12
 │ │ │ cachedir: .pytest_cache
 │ │ │ rootdir: $SRC_DIR
 │ │ │ plugins: mock-3.14.0
 │ │ │ ERROR: file or directory not found: ./tests
 │ │ │ collecting ... collected 0 items
 │ │ │ ============================ no tests ran in 0.00s =============================
 │ │ │ × error Script failed with status 4
 │ │ │ × error Work directory: '/tmp/.tmpAO1LWd'
 │ │ │ × error To debug the build, run it manually in the work directory (execute the `./conda_build.sh` or `conda_build.bat` sc
 │ │ │ × error ript)
 │ │ │
 │ │ ╰─────────────────── (took 3 seconds)
 │ │
 │ ╰─────────────────── (took 4 seconds)
 │
 ╰─────────────────── (took 13 seconds)
Error:   × failed to run test: Script failed

The above is on Linux x86-64. It looks like $SRC_DIR isn't set during the tests: script: phase. On macOS arm64 I get a different failure, in the build phase, where python goes missing, probably due to this line in the recipe:

script: ${{ PYTHON }} -m pip install . -v

recipe.yaml is auto-converted with conda-recipe-manager. For the $PYTHON issue I'm guessing that's a variable set by conda-forge, and perhaps should be dropped during the conversion? The tests failure I don't understand though, the recipe looks pretty much exactly like https://prefix-dev.github.io/rattler-build/latest/testing/#how-tests-are-translated. Any advice?

@minrk
Copy link
Contributor

minrk commented Nov 20, 2024

I'm also seeing this right now with local builds of scifem on mac-arm64.

It appears it's related to .gitignore being inappropriately applied when considering files to include. conda-forge feedstocks have a .gitignore that ignores most files not already tracked by default. Here's a recipe repo that demonstrates the problem: https://github.com/minrk/test-recipe

Removing .gitignore and/or setting --output-dir=/tmp/output or any other directory outside the feedstock directory fixes the problem.

I don't think it's right to consider .gitignore at all when computing files.source for tests, but it's certainly wrong to consider a .gitignore from entirely outside the recipe or source directory.

@wolfv
Copy link
Member

wolfv commented Nov 20, 2024

Thanks for the bug report @rgommers and the investigation @minrk. Indeed, we sometimes do use gitignore files. If someone wants to give it a shot, that would be great, otherwise I'll try to get to it next week.

@wolfv wolfv added the bug Something isn't working label Nov 20, 2024
@minrk
Copy link
Contributor

minrk commented Nov 20, 2024

fwiw, I think it's here. The simplest fix is to set that to false, but I imagine it's there for a reason. A less disruptive fix that I think would solve this particular case might be setting parents(false) to stop considering .gitignore outside the source directory, leaving only the source directory's own .gitignore. But at the same time, considering repos which might have generated files not tracked in their repo but that are part of the sdist, it doesn't make a lot of sense to me to exclude those from test files, either, so I really think setting it to false is almost always going to be the right choice.

The most flexible option, I suppose, is to add a files.use_gitignore option so recipes can pick this behavior.

@rgommers
Copy link
Contributor Author

@wolfv I can confirm that gh-1205 fixes the problem I was seeing - thanks!

@wolfv
Copy link
Member

wolfv commented Nov 21, 2024

@minrk I went with parents(false). that never makes sense.

Regardnig gitignore in general ... yeah, not sure. It seems like a sensible default. But maybe it's not good. IDK!

@wolfv
Copy link
Member

wolfv commented Nov 21, 2024

Thanks @rgommers - release is cooking!

@minrk
Copy link
Contributor

minrk commented Nov 21, 2024

Thanks, that makes sense. I wasn't quite sure how parents(false) is calculated or everywhere CopyDir is used. For source_files, I definitely agree it doesn't make sense because nothing outside the source root should be considered. For recipe files, though, it's a bit different as the recipe is often (usually?) not the root directory of a repo, so considering parents might be required to do the expected thing for the recipe, but not source_files.

@wolfv
Copy link
Member

wolfv commented Nov 22, 2024

I think even then (for the conda-forge case), the parent gitignore is managed by conda-smithy. If someone would want to gitignore recipe files, they could add another .gitignore file inside the recipe/.gitignore folder.

@wolfv wolfv closed this as completed Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants