1# Copyright 2020, 2021 PaGMO development team
2#
3# This file is part of the pygmo library.
4#
5# This Source Code Form is subject to the terms of the Mozilla
6# Public License v. 2.0. If a copy of the MPL was not distributed
7# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9try:
10    import numpy as _np
11except ImportError:
12    raise ImportError(
13        "The 'numpy' module could not be imported. Please make sure that numpy has been correctly installed, since pygmo depends on it.")
14del(_np)
15
16try:
17    import cloudpickle as _cp
18except ImportError:
19    raise ImportError(
20        "The 'cloudpickle' module could not be imported. Please make sure that cloudpickle has been correctly installed, since pygmo depends on it.")
21del(_cp)
22