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,
'-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]
setup(
name='simgrid',
- version='3.23.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',
"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",