$NetBSD$

--- Lib/distutils/command/install.py.orig	2009-06-04 07:39:50.000000000 +0000
+++ Lib/distutils/command/install.py
@@ -687,5 +687,6 @@ class install(Command):
                     ('install_headers', has_headers),
                     ('install_scripts', has_scripts),
                     ('install_data',    has_data),
-                    ('install_egg_info', lambda self:True),
                    ]
+    if not os.environ.get('PKGSRC_PYTHON_NO_EGG'):
+        sub_commands += [('install_egg_info', lambda self:True),]
