1. 03 Feb, 2020 1 commit
  2. 02 Feb, 2020 4 commits
    • Jérome Perrin's avatar
      bootstrap: pass required dest argument to easy_install.scripts · 427cc24f
      Jérome Perrin authored
      If buildout needs to generate scripts, then this argument is required,
      otherwise, there will be an error in buildout. The following happened with
      python3.6 and zc.buildout 2.7.1+slapos001:
      
          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
      427cc24f
    • Jérome Perrin's avatar
      tests: make `cp` python >= 3.3 compatible · 56deb5b9
      Jérome Perrin authored
      > Changed in version 3.3: Added follow_symlinks argument. Now returns path
      > to the newly created file.
      56deb5b9
    • Jérome Perrin's avatar
      tests: fix Anomalous backslash in string · 629862bf
      Jérome Perrin authored
      [pylint] Anomalous backslash in string: '\S'. String constant might be
      missing an r prefix.
      629862bf
    • Jérome Perrin's avatar
      tests: use print function for python3 compatibility · a188caa4
      Jérome Perrin authored
      and add the <BLANKLINES> where needed.
      a188caa4
  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 nexedi/slapos.rebootstrap!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