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

Add eigen-abi package for use in downstrem compiled libraries that use eigen in their public headers #41

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
56 changes: 37 additions & 19 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set version = "3.4.0" %}

package:
name: eigen
name: eigen-split
version: {{ version }}

source:
Expand All @@ -10,29 +10,47 @@ source:
sha256: 8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72

build:
number: 0

requirements:
build:
- cmake
- {{ compiler('cxx') }}
- make

test:
requires:
- {{ compiler('cxx') }}
files:
- test.cc

commands:
- test -d ${PREFIX}/include/eigen3 # [unix]
- if not exist %PREFIX%\\Library\\include\\eigen3 exit 1 # [win]
- if not exist %PREFIX%\\Library\\share\\pkgconfig\\eigen3.pc exit 1 # [win]
number: 1

outputs:
- name: eigen
script: build-eigen.sh # [unix]
script: bld-eigen.bat # [win]
requirements:
build:
- cmake
- {{ compiler('cxx') }}
- make
test:
requires:
- {{ compiler('cxx') }}
files:
- test.cc
commands:
- test -d ${PREFIX}/include/eigen3 # [unix]
- if not exist %PREFIX%\\Library\\include\\eigen3 exit 1 # [win]
- if not exist %PREFIX%\\Library\\share\\pkgconfig\\eigen3.pc exit 1 # [win]

- name: eigen-abi
build:
noarch: generic
run_exports:
- {{ pin_subpackage('eigen-abi', max_pin='x.x.x') }}
run_constrained:
- eigen =={{ version }}
test:
commands:
- echo "This is a metapackage, no test is necessary."

about:
home: http://eigen.tuxfamily.org/
license: MPL-2.0
summary: C++ template library for linear algebra
description: |
This feedstock builds two different conda packages:
* `eigen`: the eigen header only library ifself.
* `eigen-abi`: this a meta-package should be added as a dependency for packages that use contain C++ compiled libraries that use eigen in their public headers.


extra:
recipe-maintainers:
Expand Down