[Checkins] SVN: hurry.extjs/trunk/ Small tweaks before first release

Santiago Videla santiago.videla at gmail.com
Mon May 4 16:11:34 EDT 2009


Log message for revision 99744:
  Small tweaks before first release
  
  

Changed:
  U   hurry.extjs/trunk/README.txt
  U   hurry.extjs/trunk/setup.py

-=-
Modified: hurry.extjs/trunk/README.txt
===================================================================
--- hurry.extjs/trunk/README.txt	2009-05-04 19:56:24 UTC (rev 99743)
+++ hurry.extjs/trunk/README.txt	2009-05-04 20:11:33 UTC (rev 99744)
@@ -13,9 +13,9 @@
 How to use?
 ===========
 
-ExtJS is distributed under the terms of the GPL v3 ::
+ExtJS_ is distributed under the terms of the GPL v3 :
 
- - http://extjs.com/products/license.php
+- http://extjs.com/products/license.php
 
 In order to avoid licenses conflicts, first you need to download ExtJS_ and place it in your
 home directory. Once it's finished, add `hurry.extjs` to your setup.py and run ./bin/buildout::
@@ -25,7 +25,8 @@
            'hurry.extjs==2.2.1',
         ],
 
-Note that you `must` always download and include the same versions of ExtJS and `hurry.extjs`
+`hurry.extjs` will try to extract and copy the sources of ExtJS to a known location.
+Note that you `must` always download and include the same versions of ExtJS_ and `hurry.extjs`
 
 Now, you can import ``extjs`` like this::
 
@@ -36,3 +37,9 @@
 
   extjs_all.need()
   extjs_css.need()
+
+
+Authors
+-------
+
+- Santiago Videla

Modified: hurry.extjs/trunk/setup.py
===================================================================
--- hurry.extjs/trunk/setup.py	2009-05-04 19:56:24 UTC (rev 99743)
+++ hurry.extjs/trunk/setup.py	2009-05-04 20:11:33 UTC (rev 99744)
@@ -8,21 +8,21 @@
 dirpath = tempfile.mkdtemp()
 extjs_path = os.path.join(dirpath, 'extjs.zip')
 ex_path = os.path.join(dirpath, 'extjs_ex')
+try:
+    shutil.copy(extzip, extjs_path)
+    os.system('unzip -qq "%s" -d "%s"' % (extjs_path, ex_path))
 
-shutil.copy(extzip, extjs_path)
-os.system('unzip -qq "%s" -d "%s"' % (extjs_path, ex_path))
+    package_dir = './src/hurry/extjs/'
+    dest_path = os.path.join(package_dir, 'extjs-build')
 
-package_dir = './src/hurry/extjs/'
-dest_path = os.path.join(package_dir, 'extjs-build')
+    # remove previous ExtJS
+    shutil.rmtree(dest_path, ignore_errors=True)
 
-# remove previous ExtJS
-shutil.rmtree(dest_path, ignore_errors=True)
+    build_path = os.path.join(ex_path)
+    shutil.copytree(build_path, dest_path)
+finally:
+    shutil.rmtree(dirpath, ignore_errors=True)
 
-build_path = os.path.join(ex_path)
-shutil.copytree(build_path, dest_path)
-
-shutil.rmtree(dirpath, ignore_errors=True)
-
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 



More information about the Checkins mailing list