Skip to content

Commit 03a59f0

Browse files
BOOST_ROOT
1 parent b1566d7 commit 03a59f0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ jobs:
139139
boost_version: 1.87.0
140140

141141
- name: Build Wheel
142+
env:
143+
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
142144
run: |
143145
python setup.py bdist_wheel --plat-name=${{ matrix.platform }}
144146

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import pybind11
23
import setuptools
34
from distutils.core import setup, Extension
45

@@ -12,8 +13,8 @@
1213
Extension(
1314
'_find_a_factor',
1415
["FindAFactor/_find_a_factor.cpp", "FindAFactor/dispatchqueue.cpp"],
15-
include_dirs=['FindAFactor/include', 'pybind11/include', '/usr/local/include', '/opt/homebrew/include',
16-
(os.environ.get('VCPKG_ROOT') if os.environ.get('VCPKG_ROOT') else 'C:/vcpkg') + '/installed/x64-windows/include'],
16+
include_dirs=['FindAFactor/include', pybind11.get_include(), '/usr/local/include', '/opt/homebrew/include',
17+
(os.environ.get('BOOST_ROOT') if os.environ.get('BOOST_ROOT') else 'C:/boost') + '/include'],
1718
language='c++',
1819
extra_compile_args = cpp_args,
1920
),

0 commit comments

Comments
 (0)