Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPython 2.4.x fails with syntax error #21

Closed
astrojuanlu opened this issue Jan 27, 2013 · 3 comments
Closed

CPython 2.4.x fails with syntax error #21

astrojuanlu opened this issue Jan 27, 2013 · 3 comments

Comments

@astrojuanlu
Copy link
Contributor

I am not able to install CPython 2.4 (I tried 2.4.1 and 2.4.6 with identical results) in Arch Linux. It seems it is using a wrong setup.py, because it contains a with block (which was introduced in 2.5).

  File "./setup.py", line 253
    with open(tmpfile) as fp:
            ^
SyntaxError: invalid syntax
make: *** [sharedmods] Error 1
@saghul
Copy link
Owner

saghul commented Jan 27, 2013

I see where that comes from. It's added by this patch: https://github.com/saghul/pythonz/blob/master/pythonz/patches/all/common/patch-setup.py.diff which is applied to all pythons.

If you can provide a patch for this I'll gladly take it, else it'll take me some time to get to this.

FWIW pythonbrew seems to have the appropriate patch for this: https://github.com/utahta/pythonbrew/blob/master/pythonbrew/patches/all/python24/patch-setup.py.diff maybe you can port it ;-)

@astrojuanlu
Copy link
Contributor Author

Fair enough, seems an easy task :-) I'll do it myself tomorrow morning if you haven't done it yet. Besides I have other build issues but first I must check if they are related to my Arch setup or can be reproduced in another OS.

@saghul
Copy link
Owner

saghul commented Jan 27, 2013

That would be awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants