[Erp5-report] r38557 luke - /erp5/trunk/buildout/hooks/ghostscript-hooks.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 22 18:31:06 CEST 2010


Author: luke
Date: Wed Sep 22 18:31:05 2010
New Revision: 38557

URL: http://svn.erp5.org?rev=38557&view=rev
Log:
 - as ghostscript tarball contain syminks which are not supported by
   python re-add them before configuration

Added:
    erp5/trunk/buildout/hooks/ghostscript-hooks.py

Added: erp5/trunk/buildout/hooks/ghostscript-hooks.py
URL: http://svn.erp5.org/erp5/trunk/buildout/hooks/ghostscript-hooks.py?rev=38557&view=auto
==============================================================================
--- erp5/trunk/buildout/hooks/ghostscript-hooks.py (added)
+++ erp5/trunk/buildout/hooks/ghostscript-hooks.py [utf8] Wed Sep 22 18:31:05 2010
@@ -0,0 +1,7 @@
+import os
+def pre_configure_hook(oprtions, buildout):
+  # fixes python bug related to not creating symlink contained in tarfiles
+  for missing in 'configure.ac', 'Makefile.in':
+    if not os.path.islink(os.path.join(os.path.curdir, missing)):
+      os.symlink(os.path.join(os.path.curdir, 'base', missing),
+          os.path.join(os.path.curdir, missing))




More information about the Erp5-report mailing list