Skip to content

Commit

Permalink
Revert "python: Move catch_conflicts.py into subdirectory (#23600)"
Browse files Browse the repository at this point in the history
This reverts commit 76213d1.
  • Loading branch information
vcunat committed Apr 1, 2017
1 parent 76213d1 commit fc91ec7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
13 changes: 0 additions & 13 deletions pkgs/development/interpreters/python/catch_conflicts/README.md

This file was deleted.

9 changes: 5 additions & 4 deletions pkgs/development/interpreters/python/mk-python-derivation.nix
Expand Up @@ -79,10 +79,9 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // {
postFixup = ''
wrapPythonPrograms
'' + lib.optionalString catchConflicts ''
# 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.
${python.interpreter} ${./catch_conflicts}/catch_conflicts.py
# check if we have two packages with the same name in closure and fail
# this shouldn't happen, something went wrong with dependencies specs
${python.interpreter} ${./catch_conflicts.py}
'' + attrs.postFixup or '''';

passthru = {
Expand All @@ -99,3 +98,5 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // {
isBuildPythonPackage = python.meta.platforms;
};
})


0 comments on commit fc91ec7

Please sign in to comment.