[GHC] #9184: Allow the use of Python 3 when building GHC
GHC
ghc-devs at haskell.org
Sun Jun 8 16:39:16 UTC 2014
#9184: Allow the use of Python 3 when building GHC
-------------------------------+-------------------------------------------
Reporter: aspidites | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.8.2
Component: Build | Keywords: python
System | Architecture: Unknown/Multiple
Resolution: | Difficulty: Easy (less than 1 hour)
Operating System: | Blocked By:
Unknown/Multiple | Related Tickets:
Type of failure: |
None/Unknown |
Test Case: |
Blocking: |
-------------------------------+-------------------------------------------
Description changed by aspidites:
Old description:
> According to the
> [https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows
> wiki], it is preferred that a user have Python 2.7 installed before
> attempting to build GHC. As I'm on Arch Linux the default Python version
> is 3.4. As such, rather than simply changing the shebang line to
> explicitly ask for version 2, I made it so that the scripts all use
> syntax that works properly for versions 2.7 to 3.4. I don't think I've
> used anything that disallows 2.6, but don't have that version available
> to check against.
New description:
According to the
[https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows wiki],
it is preferred that a user have Python 2.7 installed before attempting to
build GHC. As I'm on Arch Linux the default Python version is 3.4. As
such, rather than simply changing the shebang line to explicitly ask for
version 2, I made it so that the scripts all use syntax that works
properly for versions 2.7 to 3.4. I don't think I've used anything that
disallows 2.6, but don't have that version available to check against.
I should note that the changes were as minimal as possible. That is, I
didn't bother refactoring to use more modern idioms (such as string
substitution vs concatenation). As these are helper scripts, I doubt doing
so would be much help, but I wouldn't mind doing so upon request.
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9184#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list