about summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-05-03T13·13+0000
committerLudovic Courtès <ludo@gnu.org>2010-05-03T13·13+0000
commit4bab25a28d32f0551ac20b8b9b33e79af5decf0a (patch)
treecdbcb7be8d1f176984f53f415cd7fa642bc13d95 /corepkgs
parentd77331d32f33cc17398d3e1422d0114309ef62de (diff)
buildenv: Special-case Python's `easy-install.pth' files.
* corepkgs/buildenv/builder.pl.in (createLinks): Skip `easy-install.pth'
  files.  Comment the hack.
Diffstat (limited to 'corepkgs')
-rwxr-xr-xcorepkgs/buildenv/builder.pl.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/corepkgs/buildenv/builder.pl.in b/corepkgs/buildenv/builder.pl.in
index 9932ea577d..4101f66a47 100755
--- a/corepkgs/buildenv/builder.pl.in
+++ b/corepkgs/buildenv/builder.pl.in
@@ -29,10 +29,16 @@ sub createLinks {
         $baseName =~ s/^.*\///g; # strip directory
         my $dstFile = "$dstDir/$baseName";
 
+        # The files below are special-cased so that they don't show up
+        # in user profiles, either because they are useless, or
+        # because they would cause pointless collisions (e.g., each
+        # Python package brings its own
+        # `$out/lib/pythonX.Y/site-packages/easy-install.pth'.)
         # Urgh, hacky...
-	if ($srcFile =~ /\/propagated-build-inputs$/ ||
+        if ($srcFile =~ /\/propagated-build-inputs$/ ||
             $srcFile =~ /\/nix-support$/ ||
             $srcFile =~ /\/perllocal.pod$/ ||
+            $srcFile =~ /\/easy-install.pth$/ ||
             $srcFile =~ /\/info\/dir$/ ||
             $srcFile =~ /\/log$/)
         {