diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1616,9 +1616,9 @@
 packagedata = {
     'mercurial': [
         'locale/*/LC_MESSAGES/hg.mo',
-        'defaultrc/*.rc',
         'dummycert.pem',
     ],
+    'mercurial.defaultrc': ['*.rc',],
     'mercurial.helptext': ['*.txt',],
     'mercurial.helptext.internals': ['*.txt',],
 }