1. 05 Feb, 2020 2 commits
    • Jérome Perrin's avatar
      setup: declare test dependences with extras_require · 87394b7e
      Jérome Perrin authored
      Only setup.py test understands tests_require
      87394b7e
    • Jérome Perrin's avatar
      bootstrap: fix call to easy_install.scripts · de5e5d50
      Jérome Perrin authored
      This function is supposed to be called with script names and a directory
      to store the scripts, as described in
      https://github.com/buildout/buildout/blob/2.7.1/src/zc/buildout/easy_install.txt#L478
      
      Passing an absolute path for script name and None as directory was OK on
      python <= 3.5, because:
        os.path.join(None, '/absolute/path')
      returns '/absolute/path', but on python >= 3.6 this is no longer the
      case and failed with:
      
          Traceback (most recent call last):
            File "slapos.buildout/src/zc/buildout/buildout.py", line 2240, in main
              getattr(buildout, command)(args)
            File "slapos.buildout/src/zc/buildout/buildout.py", line 643, in install
              self._install_parts(install_args)
            File "slapos.buildout/src/zc/buildout/buildout.py", line 658, in _install_parts
              self._setup_directories()
            File "slapos.rebootstrap/slapos/rebootstrap/__init__.py", line 37, in wrapper
              return getattr(self, attr)(*args, **kw)
            File "slapos.rebootstrap/slapos/rebootstrap/__init__.py", line 72, in _setup_directories
              setup_script(new_bin, self.wanted_python)
            File "slapos.rebootstrap/slapos/rebootstrap/bootstrap.py", line 31, in setup_script
              python,
            File "slapos.buildout/src/zc/buildout/easy_install.py", line 1313, in scripts
              sname = os.path.join(dest, sname)
            File "python3/lib/python3.6/posixpath.py", line 80, in join
              a = os.fspath(a)
          TypeError: expected str, bytes or os.PathLike object, not NoneType
      
      Change the parameters to respect the original signature.
      de5e5d50
  2. 02 Feb, 2020 3 commits
  3. 10 Dec, 2019 2 commits
  4. 10 Oct, 2019 2 commits
    • Jérome Perrin's avatar
      Release 4.2 · 97723def
      Jérome Perrin authored
      97723def
    • Jérome Perrin's avatar
      Support python provided by a part that does not need install · d6792dc7
      Jérome Perrin authored
      With shared builds, it's now possible that the [python2.7] part that is
      providing executable for this buildout does not need to install any part and
      makes the interpreter available since recipe initialisation.
      
      This is causing an error during the overriden method computing part signature,
      because parts are not installed yet:
      
          An internal error occurred due to a bug in either zc.buildout or in a
          recipe being used:
          Traceback (most recent call last):
            File "zc/buildout/buildout.py", line 2242, in main
              getattr(buildout, command)(args)
            File "zc/buildout/buildout.py", line 638, in install
              self._install_parts(install_args)
            File "zc/buildout/buildout.py", line 704, in _install_parts
              self._compute_part_signatures(install_parts)
            File "slapos/rebootstrap/__init__.py", line 37, in wrapper
              return getattr(self, attr)(*args, **kw)
            File "slapos/rebootstrap/__init__.py", line 95, in _compute_part_signatures
              installed_part_options[part]['__buildout_signature__']
          KeyError: 'already_installed_python'
      
      To support that case, tolerate that parts are can be not installed yet at this
      point.
      
      /reviewed-on !1
      d6792dc7
  5. 06 Jun, 2017 1 commit
  6. 05 Jun, 2017 4 commits
  7. 30 May, 2017 1 commit
    • Julien Muchembled's avatar
      Complete reimplementation · a79d01fc
      Julien Muchembled authored
      - Work entirely in-place, even to switch to a different version of Python.
      - Update bin/buildout to immediately use the wanted Python on subsequent
        buildout runs.
      
      For SlapOS, the second point is required to have the instanciation done
      with the built Python.
      a79d01fc
  8. 05 May, 2017 1 commit
  9. 15 Mar, 2017 5 commits
  10. 13 Mar, 2017 2 commits
  11. 09 Nov, 2016 1 commit
  12. 18 Aug, 2016 3 commits
  13. 30 Jun, 2016 2 commits
  14. 10 Jun, 2016 8 commits
  15. 20 Oct, 2015 2 commits
  16. 24 Jun, 2011 1 commit