Browse Source

query pip for pybind11 include path (fixes compilation for Brew-ed Python on OSX)

master
Wenzel Jakob 9 years ago
parent
commit
4fcc31ac53
  1. 10
      setup.py

10
setup.py

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

Loading…
Cancel
Save