From eef08021ab67364b4c1489bf1576a1ce7d6298ad Mon Sep 17 00:00:00 2001 From: bwoodsend Date: Fri, 18 Sep 2020 07:54:04 +0100 Subject: [PATCH] Hooks: NumPy: Add a warning for Conda incompatibility. --- PyInstaller/hooks/hook-numpy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PyInstaller/hooks/hook-numpy.py b/PyInstaller/hooks/hook-numpy.py index f60593c7656..da0c21bb987 100644 --- a/PyInstaller/hooks/hook-numpy.py +++ b/PyInstaller/hooks/hook-numpy.py @@ -102,6 +102,14 @@ def find_library(name): # their help to maintain this because our own attempts have been a disaster. if compat.is_conda: + logger.warning( + "Anaconda detected. Anaconda restructures NumPy in a way which makes " + "it's binary dependencies undetectable to PyInstaller. This can lead to" + " unexpected failures during build, runtime, runtime after your Conda " + "environment is deactivated, or on moving your compiled app to a " + "different machine. If you encounter any of these issues then please " + "switch to regular Python." + ) hiddenimports.append("six") # There are so many hidden binary dependencies. This list is heavily, OS,