def _install_scripts(self, dest, working_set, reqs=(), interpreter=None, extra_paths=(), script_arguments=''): options = self.options if BUILDOUT15: return sitepackage_safe_scripts( dest=dest, working_set=working_set, executable=options['executable'], site_py_dest=options['location'], reqs=reqs, scripts=None, interpreter=interpreter, extra_paths=extra_paths, initialization=options['initialization'], include_site_packages=self._include_site_packages, exec_sitecustomize=False, relative_paths=self._relative_paths, script_arguments=script_arguments, ) else: initialization = options['initialization'] % options return zc.buildout.easy_install.scripts( dest=dest, reqs=reqs, working_set=working_set, executable=options['executable'], extra_paths=extra_paths, initialization=initialization, arguments=script_arguments, interpreter=interpreter, relative_paths=self._relative_paths,)
def _install_scripts(self, dest, working_set, reqs=(), interpreter=None, extra_paths=(), script_arguments=''): options = self.options if BUILDOUT15: return sitepackage_safe_scripts( dest=dest, working_set=working_set, executable=options['executable'], site_py_dest=options['location'], reqs=reqs, scripts=None, interpreter=interpreter, extra_paths=extra_paths, initialization=options['initialization'], include_site_packages=self._include_site_packages, exec_sitecustomize=False, relative_paths=self._relative_paths, script_arguments=script_arguments, ) else: return zc.buildout.easy_install.scripts( dest=dest, reqs=reqs, working_set=working_set, executable=options['executable'], extra_paths=extra_paths, initialization=options['initialization'], arguments=script_arguments, interpreter=interpreter, relative_paths=self._relative_paths,)
def install_scripts(self): options = self.options location = options['location'] # The instance control script zope_conf = os.path.join(location, 'etc', 'zope.conf') zope_conf_path = options.get('zope-conf', zope_conf) extra_paths = options.get('extra-paths', '').split() requirements, ws = self.egg.working_set(['plone.recipe.zope2instance']) if BUILDOUT15: sitepackage_safe_scripts( dest=options['bin-directory'], working_set=ws, executable=options['executable'], site_py_dest=options['location'], reqs=[(self.options.get('control-script', self.name), 'plone.recipe.zope2instance.ctl', 'main')], scripts=None, interpreter=None, extra_paths=extra_paths, initialization='', include_site_packages=self._include_site_packages, exec_sitecustomize=False, relative_paths=self._relative_paths, script_arguments = ('\n ["-C", %r]' '\n + sys.argv[1:]' % zope_conf_path ), ) else: zc.buildout.easy_install.scripts( [(self.options.get('control-script', self.name), 'plone.recipe.zope2instance.ctl', 'main')], ws, options['executable'], options['bin-directory'], extra_paths = extra_paths, arguments = ('\n ["-C", %r]' '\n + sys.argv[1:]' % zope_conf_path ), relative_paths=self._relative_paths, )