python2
Currently GHC assumes that the python
command defaults to Python 2.x, but on
some systems (e.g., Arch Linux) it's already Python 3.x. This breaks the
testsuite completely. According to http://www.python.org/dev/peps/pep-0394/ on
- nix systems one should prefer
python2
command. I'm not very familiar with the
build system of GHC but my quick solution is to:
- make configure.ac check for python2
- make the testsuite also try python2 first
- remove the shebang line from
calibrate
(testsuite/timeout) since make already calls it with the value
of
PYTHON
variable
- change the shebang in
timeout.py
(in testsuite/timeout) to use python2, which
should be safe on Unix like systems (and on Windows we don't actually use timeout.py)
Btw is the PythonCmd
(defined by configure.ac) actually used somewhere -- I can't
seem to find where...
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |