Commits

illume  committed 1e54db1

Changing buildout script a little to try and get scripts working.

  • Participants
  • Parent commits eda3973

Comments (0)

Files changed (1)

File buildout.cfg

 [buildout]
-parts = python
+parts = python newsletterapp-bin fix-path
 #parts = python test
 develop =
     .
 #recipe = zc.recipe.testrunner
 #eggs = newsletter
 
+[newsletterapp-bin]
+recipe=cns.recipe.symlink
+symlink =
+    newsletterapp
+symlink_base = ${buildout:parts-directory}/../scripts/
+symlink_target = ${buildout:bin-directory}
+
+
+
 [python]
 recipe = zc.recipe.egg:script
 interpreter = python
        pywebsite
        cherrypy
        feedparser
+
+
+
+[fix-path]
+# hack fix the path to nodejs executable
+recipe=collective.recipe.cmd
+on_install=true
+on_update=true
+cmds=
+  for f in `grep '#!' ${buildout:bin-directory}/newsletterapp -l`;do
+    sed -i '' -e's|/usr/bin/env python|${buildout:bin-directory}/python|' $f
+  done
+