mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
buildenv: Special-case Python's `easy-install.pth' files.
* corepkgs/buildenv/builder.pl.in (createLinks): Skip `easy-install.pth' files. Comment the hack.
This commit is contained in:
parent
d77331d32f
commit
4bab25a28d
1 changed files with 7 additions and 1 deletions
|
@ -29,10 +29,16 @@ sub createLinks {
|
||||||
$baseName =~ s/^.*\///g; # strip directory
|
$baseName =~ s/^.*\///g; # strip directory
|
||||||
my $dstFile = "$dstDir/$baseName";
|
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...
|
# Urgh, hacky...
|
||||||
if ($srcFile =~ /\/propagated-build-inputs$/ ||
|
if ($srcFile =~ /\/propagated-build-inputs$/ ||
|
||||||
$srcFile =~ /\/nix-support$/ ||
|
$srcFile =~ /\/nix-support$/ ||
|
||||||
$srcFile =~ /\/perllocal.pod$/ ||
|
$srcFile =~ /\/perllocal.pod$/ ||
|
||||||
|
$srcFile =~ /\/easy-install.pth$/ ||
|
||||||
$srcFile =~ /\/info\/dir$/ ||
|
$srcFile =~ /\/info\/dir$/ ||
|
||||||
$srcFile =~ /\/log$/)
|
$srcFile =~ /\/log$/)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue