On 7 December 2013 10:49, <info(a)gno.de> wrote:
I tried to review your commits relating to py3
compatibility. I am unsure
about "PY3" os environment. Is this set by the python3 installation or must
be set by hand?
This must be set by hand. Python 3 support is not functional yet, so I have
kept the 'Pywikibot is not Python 3 compatible' error in place. Of course,
to work on Py3 support, one has to be able to ignore that error -- which is
exactly what the PY3 environment variable does.
(py33)valhallasw@lisilwen:~/src/pwb/pywikibot-core$ python3.3 pwb.py
Traceback (most recent call last):
File "pwb.py", line 77, in <module>
raise RuntimeError("ERROR: Pywikipediabot only runs under Python 2")
RuntimeError: ERROR: Pywikipediabot only runs under Python 2
(py33)valhallasw@lisilwen:~/src/pwb/pywikibot-core$ PY3=1 python3.3 pwb.py
wrapper script to use rewrite in 'directory' mode - run scripts using
python pwb.py <name_of_script> <options>
and it will use the package directory to store all user files, will fix up
search paths so the package does not need to be installed, etc.
Once support for Python 3.3+ is finished, we can remove warning altogether.