Browse Source

Merge pull request #6 from wjakob/master

query pip for pybind11 include path (fixes compilation for Brew-ed Python on OSX)
master
Sylvain Corlay 9 years ago
parent
commit
17808d70a5
  1. 10
      setup.py

10
setup.py

@ -1,12 +1,18 @@ @@ -1,12 +1,18 @@
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import os, sys
from pip import locations
import os
import sys
import setuptools
ext_modules = [
Extension(
'pbtest',
['py/main.cpp'],
include_dirs=['include'],
include_dirs=[
# Path to pybind11 headers
os.path.dirname(locations.distutils_scheme('pybind11')['headers'])
],
language='c++',
),
]

Loading…
Cancel
Save