<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,4 +4,5 @@ include README.md
 include THANKS.txt
 include ez_setup.py
 recursive-include app-template *
-recursive-include vendor *
\ No newline at end of file
+recursive-include vendor *
+recursive-include python/couchapp/_external *
\ No newline at end of file</diff>
      <filename>MANIFEST.in</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@ import ez_setup
 ez_setup.use_setuptools()
 
 from setuptools import setup, find_packages
+from setuptools.command.easy_install import easy_install
 
 import os
 import sys
@@ -26,10 +27,27 @@ for dir, dirs, files in os.walk('vendor'):
 for dir, dirs, files in os.walk('python/couchapp'):
     for i, dirname in enumerate(dirs):
         if dirname.startswith('.'): del dirs[i]
+        
+    data_files.append((dir, [os.path.join(dir, file_) for file_ in files]))
     
-    data_files.append((os.path.join('couchapp', dir), 
-        [os.path.join(dir, file_) for file_ in files]))
-
+easy_install.real_process_distribution = easy_install.process_distribution
+def process_distribution(self, *args, **kwargs):
+    &quot;&quot;&quot; overide process_distribution to add permissions&quot;&quot;&quot;
+    easy_install.real_process_distribution(self, *args, **kwargs)
+    import pkg_resources
+    try:
+        pkg_resources.require('couchapp')
+        external_path = pkg_resources.resource_filename(&quot;couchapp&quot;, &quot;_external&quot;)
+        for dir, dirs, files in os.walk(external_path):
+            for i, dirname in enumerate(dirs):
+                if dirname.startswith('.'): del dirs[i]
+            for file_ in files:
+                os.chmod(os.path.join(dir, file_), 0755)  
+            
+    except:
+        print &gt;&gt;sys.stderr, &quot;Chmoding failed. Try to 'chmod -R +x /pathto/couchapp/_external'&quot;
+easy_install.process_distribution = process_distribution        
+ 
 setup(
     name = 'Couchapp',
     version = '0.1.13',
@@ -77,5 +95,6 @@ setup(
         'couchdb&gt;=0.5',
         'simplejson',
     ],
+    
 )
 </diff>
      <filename>setup.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cd0d5fd097841ed20313f0d047425e763054a17e</id>
    </parent>
  </parents>
  <author>
    <name>Benoit Chesneau</name>
    <email>benoitc@enlil.local</email>
  </author>
  <url>http://github.com/jchris/couchapp/commit/ac1e2c9cb2123e1f009d988e28030f47782eb8ab</url>
  <id>ac1e2c9cb2123e1f009d988e28030f47782eb8ab</id>
  <committed-date>2009-03-04T02:25:58-08:00</committed-date>
  <authored-date>2009-03-04T02:25:58-08:00</authored-date>
  <message>fix distribution file. Now git.sh should be correctly added to data files and permission is set. (add to monkeypatch the easy_install.process_distribution function for the latest **sigh**)</message>
  <tree>2d186cdeb37f902d7b2d74dee183a03d2bd4d60e</tree>
  <committer>
    <name>Benoit Chesneau</name>
    <email>benoitc@enlil.local</email>
  </committer>
</commit>
