Review Request 116473: Fix unicode literal problem

Alexandr Zamaraev tonal.promsoft at gmail.com
Fri Feb 28 11:06:15 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116473/
-----------------------------------------------------------

(Updated Feb. 28, 2014, 6:06 p.m.)


Review request for KDevelop and Sven Brauch.


Changes
-------

pyHomeDir.toUtf8().data() create temp QByteArray. This destroed after Py_SetPythonHome, but function saves pointer...

Also correct path for modules.
+ move Py_NoSiteFlag to PythonInitializer and set Py_OptimizeFlag - for speedle. :)


Bugs: 331084
    http://bugs.kde.org/show_bug.cgi?id=331084


Repository: kdev-python


Description
-------

Python find codecs for convert literal to inner representation. Codec depend other Python modules.
I copy to kdevpythonsupport/encodings all modules from python-src/Lib.

Also, optionally for speed, I compule all encodings module to *.pyc and *.pyo forms:
$ cd python-src/Lib/encodings
$ ls *.py | xargs -l1 ../../python

Maybe rename kdevpythonsupport/encodings to kdevpythonsupport/pyhome, for example?


Diffs (updated)
-----

  CMakeLists.txt 2de9bba 
  parser/astbuilder.h dba14cc 
  parser/astbuilder.cpp ce63f0a 

Diff: https://git.reviewboard.kde.org/r/116473/diff/


Testing
-------

Its work for me.


Thanks,

Alexandr Zamaraev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140228/d3b69e7e/attachment-0001.html>


More information about the KDevelop-devel mailing list