Skip to content

Commit

Permalink
remove compatibility outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 15, 2024
1 parent af4b1ac commit e2249a0
Showing 1 changed file with 10 additions and 47 deletions.
57 changes: 10 additions & 47 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ outputs:
- cmake # [win]
host:
run_constrained:
# make sure we don't co-install with old version of old package name
- boost-cpp ={{ version }}
# avoid co-installation with old naming of package
- boost-cpp <0.0a0
test:
commands:
# presence of regular headers
Expand Down Expand Up @@ -109,13 +109,8 @@ outputs:
- zlib
- zstd
run_constrained:
# Anaconda's output is also called libboost; therefore we automatically
# avoid issues of co-installability, because a package with the same name
# can only be installed once. Rather, we need to ensure that conda-forge's
# old name "boost-cpp" cannot be co-installed wrongly. Since we keep that
# output as a compatibility wrapper (see below), it's enough to enforce
# the same version to ensure no old boost packages can be co-installed.
- boost-cpp ={{ version }}
# avoid co-installation with old naming of package
- boost-cpp <0.0a0
test:
commands:
# absence of headers
Expand Down Expand Up @@ -176,8 +171,8 @@ outputs:
- {{ pin_subpackage("libboost", exact=True) }}
- {{ pin_subpackage("libboost-headers", exact=True) }}
run_constrained:
# make sure we don't co-install with old version of old package name
- boost-cpp ={{ version }}
# avoid co-installation with old naming of package
- boost-cpp <0.0a0
test:
files:
- test
Expand Down Expand Up @@ -206,24 +201,6 @@ outputs:
- ./test_lib.sh # [unix]
- ./test_lib.bat # [win]

# compatibility output for old naming convention
- name: boost-cpp
requirements:
host:
# match host deps to avoid hash collisions between wrappers
- icu # [unix]
- libiconv # [win]
- bzip2
- xz
- zlib
- zstd
- {{ pin_subpackage("libboost-devel", exact=True) }}
run:
- {{ pin_subpackage("libboost-devel", exact=True) }}
test:
commands:
- echo "tested in other outputs"

# the python libraries (no headers)
- name: libboost-python
script: build-py.sh # [unix]
Expand All @@ -247,8 +224,8 @@ outputs:
run:
- python
run_constrained:
# make sure we don't co-install with old version of old package name
- boost ={{ version }}
# avoid co-installation with old naming of package
- boost <0.0a0
# avoid co-installation with Anaconda's naming of this output
- py-boost <0.0a0
test:
Expand Down Expand Up @@ -298,8 +275,8 @@ outputs:
- {{ pin_subpackage("libboost-python", exact=True) }}
- {{ pin_subpackage("libboost-devel", exact=True) }}
run_constrained:
# make sure we don't co-install with old version of old package name
- boost ={{ version }}
# avoid co-installation with old naming of package
- boost <0.0a0
# avoid co-installation with Anaconda's naming of this output
- py-boost <0.0a0
test:
Expand All @@ -310,20 +287,6 @@ outputs:
- if not exist %LIBRARY_LIB%\cmake\boost_python-{{ version }} exit 1 # [win]
- if not exist %LIBRARY_LIB%\cmake\boost_numpy-{{ version }} exit 1 # [win]

# compatibility output for old naming convention
- name: boost
requirements:
host:
# match host deps to avoid hash collisions between wrappers
- python
- numpy
- {{ pin_subpackage("libboost-python-devel", exact=True) }}
run:
- {{ pin_subpackage("libboost-python-devel", exact=True) }}
test:
commands:
- echo "tested in other outputs"

about:
home: http://www.boost.org/
license: BSL-1.0
Expand Down

0 comments on commit e2249a0

Please sign in to comment.