Source

rope / setupall.py

Diff from to

setupall.py

-import os
+import os.path
 import shutil
 import subprocess
 import sys
 
 if __name__ == '__main__':
     for kind in ['rope', 'ropeide', 'ropemacs']:
-        manifest = 'tools/%s_MANIFEST.in' % kind
-        setup = 'tools/%s_setup.py' % kind
+        manifest = os.path.join('tools', '%s_MANIFEST.in' % kind)
+        setup = os.path.join('tools', '%s_setup.py' % kind)
+        readme = os.path.join('docs', '%s.txt' % kind)
         shutil.copy(manifest, 'MANIFEST.in')
         shutil.copy(setup, 'setup.py')
+        shutil.copy(readme, 'README.txt')
         try:
             run_setup(sys.argv[1:])
         finally:
-            for temp in ['setup.py', 'MANIFEST.in', 'MANIFEST']:
+            for temp in ['setup.py', 'MANIFEST.in', 'MANIFEST', 'README.txt']:
                 if os.path.exists(temp):
                     os.remove(temp)