Commits

Michal Dvorak committed 604816d

use-interpreter option is now optional, with system python as fallback

  • Participants
  • Parent commits a8e9abc

Comments (0)

Files changed (2)

 
 Parameters
 
-* use-interpreter - Name of python interpreter to use.
 * develop - List of directories, where ``setup.py`` files reside. Typically ``${buildout:develop}`` to list all developed apps.
+* use-interpreter - Name of python interpreter to use. Optional, when not specified, system interpreter is used.
 * command - Command line argument for the ``setup.py``. Optional.
 
 Typical buildout.cfg snippet::

setup_recipe/__init__.py

     in all configured directories using specified python interpreter.
 
     Supported options:
-    * use-interpreter - Name of python interpreter to use.
     * develop - List of directories, where `setup.py` files reside. Typically `${buildout:develop}` to list all developed apps.
+    * use-interpreter - Name of python interpreter to use. Optional, when not specified, system interpreter is used.
     * command - Command line argument for the `setup.py`. Optional.
     """
 
         bin = self.buildout['python']['bin-directory']
         python = self.buildout['python']['executable']
         script = os.path.join(bin, self.name)
-        interpreter = os.path.join(bin, self.options['use-interpreter'])
+        interpreter = os.path.join(bin, self.options.get('use-interpreter', python))
         command = self.options.get('command')
 
         # Write out the script. Ugly but functional.