X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ce930ad96b622e2b3856b7d9c3d97e60ec2c93a1..e91f26820b30a2d87b4c723e92eaebbd2dc5ce15:/setup.py diff --git a/setup.py b/setup.py index 55ebf64fc9..21877a1b07 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,7 @@ +# Copyright (c) 2019-2022. The SimGrid Team. All rights reserved. +# This program is free software; you can redistribute it and/or modify it +# under the terms of the license (GNU LGPL-2.1-only) which comes with this package. # python3 setup.py sdist # Build a source distrib (building binary distribs is complex on linux) @@ -47,6 +50,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 +58,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,9 +88,9 @@ class CMakeBuild(build_ext): setup( name='simgrid', - version='3.24', + version='3.31.1', author='Da SimGrid Team', - author_email='simgrid-devel@lists.gforge.inria.fr', + author_email='simgrid-community@inria.fr', description='Toolkit for scalable simulation of distributed applications', long_description=("SimGrid is a scientific instrument to study the behavior of " "large-scale distributed systems such as Grids, Clouds, HPC or P2P " @@ -95,8 +101,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",