@nickva
The naughty thing that I had to do was, in the CentOS 6 Docker image, I
installed python3 to /usr/local/bin/python and placed /usr/local/bin ahead of
/usr/bin in the path. This is because CentOS 6 has Python 2.6, which is too old
for some of the things we're doing in our code already...and I took great pains
to ensure that all of the Python scripts we run in `make check` and `make
release` and `make dist` work without change in both python 2 and python 3.
What I'd do is run `2to3` on all 4 scripts, and apply any changes it requests,
then change it to `python3`. That'll be better for the future, when the distros
decide to remove python 2.7 anyway. The error we're getting on Jenkins for
CentOS6 for Python 3 is:
```python
make[1]: Entering directory `/tmp/tmp.ILBeu2AdWN/apache-couchdb-2.2.0-fbb5588'
Traceback (most recent call last):
File "dev/run", line 592, in <module>
main()
File "dev/run", line 80, in main
ctx = setup()
File "dev/run", line 94, in setup
setup_configs(ctx)
File "dev/run", line 65, in wrapper
res = func(*args, **kwargs)
File "dev/run", line 203, in setup_configs
write_config(ctx, node, env)
File "dev/run", line 239, in write_config
content = hack_default_ini(ctx, node, content)
File "dev/run", line 289, in hack_default_ini
flags=re.MULTILINE)
TypeError: sub() got an unexpected keyword argument 'flags'
```
[ Full content available at: https://github.com/apache/couchdb/issues/1632 ]
This message was relayed via gitbox.apache.org for [email protected]