diff --git a/xmsconan/xms_conan_file.py b/xmsconan/xms_conan_file.py index 4d2ee2f..09818b3 100644 --- a/xmsconan/xms_conan_file.py +++ b/xmsconan/xms_conan_file.py @@ -154,7 +154,7 @@ def run_python_tests_and_upload(self): with tools.pythonpath(self): # Install required packages for python testing. - packages_to_install = ['numpy', 'wheel'] + packages_to_install = ['"numpy<2.0"', 'wheel'] if not self.settings.os == "Macos": self.run(f'pip install --user {" ".join(packages_to_install)}') else: