Skip to content

Fix -m compileall#566

Merged
inclement merged 1 commit into
masterfrom
fix-compileall
Jan 10, 2016
Merged

Fix -m compileall#566
inclement merged 1 commit into
masterfrom
fix-compileall

Conversation

@tito

@tito tito commented Jan 10, 2016

Copy link
Copy Markdown
Member

When i'm building a distribution with:

p4a create -v --dist_name test --bootstrap pygame --requirements=kivy==1.9.1 --android_api=19 --force-build

I can't get to the end because it breaks to the python distribute part:

[INFO]:    Copying python distribution
[INFO]:    running python.host -OO -m compileall /home/tito/.local/share/python-for-android/build/python-installs/test
[INFO]:    STDOUT:
    Compiling /home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/json/tests/test_unicode.py ...
SyntaxError: ("(unicode error) \\N escapes not supported (can't load unicodedata module)", ('/home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/json/tests/test_unicode.py', 8, None, "u = u'\\N{GREEK SMALL LETTER ALPHA}\\N{GREEK CAPITAL LETTER OMEGA}'\n"))

Compiling /home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/lib2to3/tests/data/py3_test_grammar.py ...
SyntaxError: ('invalid syntax', ('/home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/lib2to3/tests/data/py3_test_grammar.py', 130, 13, '        x = ...\n'))

unicodedata module can't be loaded, so the \N dont work. As for py3 compileall, it just can't work with python host compileall :)

I didn't search what changed about it, but making it non critical works.

(Should we do the same for others bootstraps ?)

When i'm building a distribution with:

    p4a create -v --dist_name test --bootstrap pygame --requirements=kivy==1.9.1 --android_api=19 --force-build

I can't get to the end because it breaks to the python distribute part:

[INFO]:    Copying python distribution
[INFO]:    running python.host -OO -m compileall /home/tito/.local/share/python-for-android/build/python-installs/test
[INFO]:    STDOUT:
	Compiling /home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/json/tests/test_unicode.py ...
SyntaxError: ("(unicode error) \\N escapes not supported (can't load unicodedata module)", ('/home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/json/tests/test_unicode.py', 8, None, "u = u'\\N{GREEK SMALL LETTER ALPHA}\\N{GREEK CAPITAL LETTER OMEGA}'\n"))

Compiling /home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/lib2to3/tests/data/py3_test_grammar.py ...
SyntaxError: ('invalid syntax', ('/home/tito/.local/share/python-for-android/build/python-installs/test/lib/python2.7/lib2to3/tests/data/py3_test_grammar.py', 130, 13, '        x = ...\n'))

unicodedata module can't be loaded, so the \\N dont work. As for py3 compileall, it just can't work with python host compileall :)

I didn't search what changed about it, but making it non critical works.

(Should we do the same for others bootstraps ?)
@inclement

Copy link
Copy Markdown
Member

I noticed the same problem when I first tried it, but I assumed it was my mistake...I don't know either why it wouldn't work any more.

inclement added a commit that referenced this pull request Jan 10, 2016
@inclement inclement merged commit 8d27c83 into master Jan 10, 2016
@tito tito deleted the fix-compileall branch January 10, 2016 15:45
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

Successfully merging this pull request may close these issues.

2 participants