[Checkins] SVN: hurry.zopeyui/trunk/ * create yui-build directory only when it isn't around already.
Martijn Faassen
faassen at infrae.com
Tue Oct 7 12:07:30 EDT 2008
Log message for revision 91868:
* create yui-build directory only when it isn't around already.
* ignore some things (including yui-build directory)
Changed:
_U hurry.zopeyui/trunk/
U hurry.zopeyui/trunk/setup.py
_U hurry.zopeyui/trunk/src/hurry/zopeyui/
-=-
Property changes on: hurry.zopeyui/trunk
___________________________________________________________________
Name: svn:ignore
+ develop-eggs
.installed.cfg
bin
parts
Name: svn:externals
+ hurry.yui svn://svn.zope.org/repos/main/hurry.yui/trunk
hurry.zoperesource svn://svn.zope.org/repos/main/hurry.zoperesource/trunk
Modified: hurry.zopeyui/trunk/setup.py
===================================================================
--- hurry.zopeyui/trunk/setup.py 2008-10-07 15:54:40 UTC (rev 91867)
+++ hurry.zopeyui/trunk/setup.py 2008-10-07 16:07:30 UTC (rev 91868)
@@ -5,17 +5,16 @@
YUI_VERSION = '2.6.0'
package_dir = os.path.dirname(__file__)
-yui_build_path = os.path.join(package_dir, 'src', 'hurry', 'zopeyui',
- 'yui-build')
+yui_dest_path = os.path.join(package_dir, 'src', 'hurry', 'zopeyui',
+ 'yui-build')
def copy_yui(ex_path):
"""Copy YUI to location 'yui-build' in package."""
yui_build_path = os.path.join(ex_path, 'yui', 'build')
- shutil.rmtree(target_path, ignore_errors=True)
- shutil.copytree(yui_build_path, yui_build_path)
+ shutil.copytree(yui_build_path, yui_dest_path)
# only re-download if path doesn't exist
-if not os.path.exists(yui_build_path):
+if not os.path.exists(yui_dest_path):
yuidl.download(YUI_VERSION, copy_yui)
setup(
Property changes on: hurry.zopeyui/trunk/src/hurry/zopeyui
___________________________________________________________________
Name: svn:ignore
+ yui-build
More information about the Checkins
mailing list