Skip to content

Commit

Permalink
Do not generate dependent releaser scripts on Python 3.6.
Browse files Browse the repository at this point in the history
Needed to fix the hopefully last problems on Jenkins node 4 with Python 3.6, which seems to have no locale setting.
See #642 (comment)

Sample traceback (local):

```
While:
  Installing releaser.
Traceback (most recent call last):
  File "/Users/maurits/community/plone-coredev/py3/lib/python3.6/site-packages/zc/buildout/buildout.py", line 2174, in main
    getattr(buildout, command)(args)
  File "/Users/maurits/community/plone-coredev/py3/lib/python3.6/site-packages/zc/buildout/buildout.py", line 817, in install
    installed_files = self[part]._call(recipe.install)
  File "/Users/maurits/community/plone-coredev/py3/lib/python3.6/site-packages/zc/buildout/buildout.py", line 1603, in _call
    return f()
  File "/Users/maurits/shared-eggs/cp36m/zc.recipe.egg-2.0.7-py3.6.egg/zc/recipe/egg/egg.py", line 263, in install
    relative_paths=self._relative_paths,
  File "/Users/maurits/community/plone-coredev/py3/lib/python3.6/site-packages/zc/buildout/easy_install.py", line 1219, in scripts
    _distutils_script(spath, sname, contents, initialization, rpsetup)
  File "/Users/maurits/community/plone-coredev/py3/lib/python3.6/site-packages/zc/buildout/easy_install.py", line 1346, in _distutils_script
    return _create_script(contents, dest)
  File "/Users/maurits/community/plone-coredev/py3/lib/python3.6/site-packages/zc/buildout/easy_install.py", line 1384, in _create_script
    f.write(contents)
UnicodeEncodeError: 'ascii' codec can't encode character '\xa9' in position 96: ordinal not in range(128)
```

This is while generating the `bin/rst2html5.py` script, which fails because it contains this text:

    Copyright: © 2015 Günter Milde.
  • Loading branch information
mauritsvanrees committed Mar 10, 2020
1 parent 7d3e486 commit 4be8039
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ eggs =
zest.pocompile


[releaser:python36]
# Jenkins node 4 has trouble with Python 3.6 and non-ascii.
# You see this when generating bin/rst2html5.py, among probably others.
dependent-scripts = false


[z3c_checkversions]
# run this via bin/checkversions -l 2 versions.cfg
recipe = zc.recipe.egg
Expand Down

0 comments on commit 4be8039

Please sign in to comment.