Skip to content

Commit

Permalink
Various fixes:
Browse files Browse the repository at this point in the history
- use unittest-xml-reporting to get xmlrunner
- provide the required sympy via a staging channel
- add intel-openmp to run to solve overlinking errors
- whitelist ld64 on s390x as usual
  • Loading branch information
danpetry committed Dec 6, 2024
1 parent 858e6a7 commit 34c9797
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion abs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
# variant, so it's specified for both.
extra_labels_for_os:
osx-arm64: [ventura]
aggregate_check: false
aggregate_check: false

channels:
- https://staging.continuum.io/prefect/fs/sympy-feedstock/pr10/3afd78c
16 changes: 15 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ build:
- python * # [megabuild]
- numpy * # [megabuild]
skip: True # [py<39]
skip: True # [win]

requirements:
# Keep this list synchronized (except for python*, numpy*) in outputs
Expand Down Expand Up @@ -175,6 +176,9 @@ requirements:
- eigen 3.3.7
- astunparse 1.6.3
- opentelemetry-api
# satisfy overlinking checks
run:
- {{ pin_compatible('intel-openmp') }} # [blas_impl == "mkl"]

# these tests are for the libtorch output below, but due to
# a particularity of conda-build, that output is defined in
Expand All @@ -192,6 +196,9 @@ test:

outputs:
- name: libtorch
build:
missing_dso_whitelist:
- $RPATH/ld64.so.1 # [s390x]
- name: pytorch
build:
string: gpu_cuda{{ cuda_compiler_version | replace('.', '') }}_py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [gpu_variant == "cuda-12"]
Expand All @@ -201,11 +208,14 @@ outputs:
- torchrun = torch.distributed.run:main
ignore_run_exports: # [osx]
- libuv # [osx]
missing_dso_whitelist:
- $RPATH/ld64.so.1 # [s390x]
detect_binary_files_with_prefix: false
run_exports:
- {{ pin_subpackage('pytorch', max_pin='x.x') }}
- {{ pin_subpackage('libtorch', max_pin='x.x') }}
skip: True # [py<39]
skip: True # [win]

script: build_pytorch.sh # [unix]
script: build_pytorch.bat # [win]
Expand Down Expand Up @@ -355,7 +365,11 @@ outputs:
- mock # [linux]
- pip
- expecttest
- xmlrunner
# unittest-xml-reporting provides xmlrunner
- unittest-xml-reporting
- pytest-rerunfailures
- pytest-flakefinder
- pytest-xdist
imports:
- torch
source_files:
Expand Down

0 comments on commit 34c9797

Please sign in to comment.