X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b37b5ecce130381a94e3f36a76e9b83e21250a3e..bad14d23aa8bca6a7a96a68f8e64ea74ee7b20b0:/setup.py diff --git a/setup.py b/setup.py index d5475b4c79..aa333b11c2 100755 --- a/setup.py +++ b/setup.py @@ -47,6 +47,7 @@ class CMakeBuild(build_ext): self.build_extension(ext) def build_extension(self, ext): + from pybind11 import get_cmake_dir extdir = os.path.abspath(os.path.dirname( self.get_ext_fullpath(ext.name))) cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir, @@ -54,7 +55,9 @@ class CMakeBuild(build_ext): '-Denable_smpi=OFF', '-Denable_java=OFF', '-Denable_python=ON', - '-Dminimal-bindings=ON'] + '-Dminimal-bindings=ON', + '-Dpybind11_DIR=' + get_cmake_dir() + ] cfg = 'Debug' if self.debug else 'Release' build_args = ['--config', cfg] @@ -82,7 +85,7 @@ class CMakeBuild(build_ext): setup( name='simgrid', - version='3.25.1', + version='3.27.1', author='Da SimGrid Team', author_email='simgrid-devel@lists.gforge.inria.fr', description='Toolkit for scalable simulation of distributed applications',