Mercurial > hg
view tests/test-hgweb-no-path-info.out @ 11948:88d4911930bf
contrib/setup3k.py: added script to build hg with py3k
This patch implements a script that inherits most of its functionality from
hg's setup.py and adds support to calling 2to3 during invocation with python3.
The motivation of having this script around is twofold:
1) It enables py3k crazies to test mercurial in py3k and, hopefully, patch it
more easily, so it can improve the py3k support to eventually run there.
2) Being separated from the main setup.py eliminates the need to make hg's
setup.py even more cluttered, and enables "independent" development until
the port is done.
Some considerations about the structure of this patch:
Mercurial already overrides the behavior of build_py, this patch tweaks it a bit
more to add support to call 2to3 with a custom fixer* location for Mercurial.
There is also a need of having the core C modules built *before* the
translation process starts, otherwise 2to3 will think those are global modules.
* A fixer is a python module that transforms python 2.x code in python 3.x
code.
author | Renato Cunha <renatoc@gmail.com> |
---|---|
date | Tue, 03 Aug 2010 13:18:16 -0300 |
parents | 3b93032516b3 |
children | dfb11f9922c1 |
line wrap: on
line source
changeset: 0:4cbec7e6f8c4 tag: tip user: Testing date: Thu Jan 01 00:00:00 1970 +0000 summary: test ---- HEADERS 200 Script output follows ---- DATA [('Content-Type', 'application/atom+xml; charset=ascii')] <?xml version="1.0" encoding="ascii"?> <feed xmlns="http://www.w3.org/2005/Atom"> <!-- Changelog --> <id>http://127.0.0.1/</id> <link rel="self" href="http://127.0.0.1/atom-log"/> <link rel="alternate" href="http://127.0.0.1/"/> <title>repo Changelog</title> <updated>1970-01-01T00:00:00+00:00</updated> <entry> <title>test</title> <id>http://127.0.0.1/#changeset-4cbec7e6f8c42eb52b6b52670e1f7560ae9a101e</id> <link href="http://127.0.0.1/rev/4cbec7e6f8c4"/> <author> <name>Testing</name> <email>Testing</email> </author> <updated>1970-01-01T00:00:00+00:00</updated> <published>1970-01-01T00:00:00+00:00</published> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <pre xml:space="preserve">test</pre> </div> </content> </entry> </feed> ---- ERRORS ---- HEADERS 200 Script output follows ---- DATA [('Content-Type', 'text/plain; charset=ascii')] repo/ ---- ERRORS