From 30b7980d4e8f63aaa142fadbd6fef0433949fd5b Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Tue, 8 Feb 2022 15:22:37 +0800 Subject: [PATCH] Support eigen. --- .github/workflows/python.yml | 2 +- cython/setup.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a570fed8..75b30b0f 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -25,7 +25,7 @@ jobs: TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} steps: - uses: actions/checkout@v2 - - run: git submodule update --init extlib/mimalloc + - run: git submodule update --init extlib/mimalloc extlib/eigen - uses: actions/setup-python@v2 with: python-version: ${{ matrix.pyver }} diff --git a/cython/setup.py b/cython/setup.py index 9cddb0b6..a82af6b0 100644 --- a/cython/setup.py +++ b/cython/setup.py @@ -24,6 +24,7 @@ extlib_path = join(m_path, 'extlib') mimalloc_path = join(extlib_path, 'mimalloc') mimalloc_include_path = join(mimalloc_path, 'include') mimalloc_src_path = join(mimalloc_path, 'src') +eigen_path = join(include_path, 'Eigen') build_dir = 'build' macros = [ ('M_PI', 'PI'), @@ -97,6 +98,7 @@ compiler_directives = {'binding': True, 'cdivision': True} def copy_source(dry_run): dir_util.copy_tree(join('..', 'include'), include_path, dry_run=dry_run) + dir_util.copy_tree(join('..', 'extlib', 'eigen', 'Eigen'), eigen_path, dry_run=dry_run) dir_util.copy_tree(join('..', 'extlib', 'mimalloc', 'include'), mimalloc_include_path, dry_run=dry_run)