Skip to content

Commit

Permalink
Hooks: NumPy: Add a warning for Conda incompatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Sep 18, 2020
1 parent 64e1a71 commit eef0802
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PyInstaller/hooks/hook-numpy.py
Expand Up @@ -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,
Expand Down

0 comments on commit eef0802

Please sign in to comment.