diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-13 09:12:26 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-13 10:20:14 +0200 |
commit | a7ea828f09d5b227cab62224422416fda108b57e (patch) | |
tree | e6b56b24accbf365ddc89b9be4d8ac885205678f /pkgs/development/interpreters/python/hooks | |
parent | b27ff41eab4722fd1ddfc1d451db4d078b2669e4 (diff) | |
download | nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.tar nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.tar.gz nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.tar.bz2 nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.tar.lz nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.tar.xz nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.tar.zst nixpkgs-a7ea828f09d5b227cab62224422416fda108b57e.zip |
pythonRemoveBinBytecodeHook: fix explanation
Diffstat (limited to 'pkgs/development/interpreters/python/hooks')
-rw-r--r-- | pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh b/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh index 2add23f2316..1180694294d 100644 --- a/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh @@ -1,9 +1,9 @@ -# Setup hook for detecting conflicts in Python packages +# Setup hook for removing bytecode from the bin folder echo "Sourcing python-remove-bin-bytecode-hook.sh" -# Check if we have two packages with the same name in the closure and fail. -# If this happens, something went wrong with the dependencies specs. -# Intentionally kept in a subdirectory, see catch_conflicts/README.md. +# The bin folder is added to $PATH and should only contain executables. +# It may happen there are executables with a .py extension for which +# bytecode is generated. This hook removes that bytecode. pythonRemoveBinBytecodePhase () { if [ -d "$out/bin" ]; then |