X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9e1ebd32a0bd3bb4839ab3076d4bd6061c279e1c..bad14d23aa8bca6a7a96a68f8e64ea74ee7b20b0:/setup.py diff --git a/setup.py b/setup.py index 55ebf64fc9..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.24', + version='3.27.1', author='Da SimGrid Team', author_email='simgrid-devel@lists.gforge.inria.fr', description='Toolkit for scalable simulation of distributed applications', @@ -95,8 +98,8 @@ setup( "sudo apt install cmake libboost-dev pybind11-dev g++ gcc"), ext_modules=[CMakeExtension('simgrid')], cmdclass=dict(build_ext=CMakeBuild), - install_requires=['pybind11>=2.3'], - setup_requires=['pybind11>=2.3'], + install_requires=['pybind11>=2.4'], + setup_requires=['pybind11>=2.4'], zip_safe=False, classifiers=[ "Development Status :: 4 - Beta",