[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] Twine2 Error when parsing qobject.sip
From: Artem Serebriyskiy <v.for.vandal () gmail ! com>
Date: 2011-07-24 13:58:56
Message-ID: CAJU16cMXuyTeeHD68oqqwCphBzquk9f=s1tUvnfSkXQFeCwT7Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
When I am trying to create a SIP files for my library with twine2, it gives
me the following error while parsing qobject.sip
File: '/usr/share/sip/PyQt4/QtCore/qobject.sip' Line: 279 Syntax error in
input. Token type: LBRACE, token value: {, lex state: variable
I am attaching my script that invokes twine2, but as it is copied from
twine2/kdelibs.py, I doubt that error is in it.
Python Qt version is 4.8.3-2+b1
--
Sincerely yours,
Artem Serebriyskiy
[Attachment #5 (text/html)]
When I am trying to create a SIP files for my library with twine2, it gives me the \
following error while parsing qobject.sip<br><br>File: \
'/usr/share/sip/PyQt4/QtCore/qobject.sip' Line: 279 Syntax error in input. \
Token type: LBRACE, token value: {, lex state: variable<br>
<br>I am attaching my script that invokes twine2, but as it is copied from \
twine2/kdelibs.py, I doubt that error is in it.<br><br>Python Qt version is \
4.8.3-2+b1<br clear="all"><br>-- <br>Sincerely yours,<br>Artem Serebriyskiy<br>
--bcaec5430d8cb053a904a8d11acd--
["sip_generation.py" (text/x-python)]
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2009-2010 Simon Edwards <simon@simonzone.com>
# Copyright 2011 Artem Serebriyskiy <v.for.vandal@gmail.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import sys
# Add path to twine2 installation
sys.path.append("/home/artemkde/kdesrc/twine2")
import toolkit
import qtkdemacros
import os.path
import sipsymboldata
sipImportDir = "/usr/share/sip/PyQt4"
webextractorBaseDirectory="../webextractor"
########################################################
webextractor = toolkit.ModuleGenerator(
module="PyKDE4.nepomuk.webextractor",
outputDirectory="./webextractor/sip",
docsOutputDirectory="./doc/webextractor",
# .h file extraction
cmakelists = os.path.join(webextractorBaseDirectory,"CMakeLists.txt"),
ignoreHeaders="""debugexecutive.h simplenetworkexecutive.h \
simplenetworkreply.h simplenetworkrequest.h simplenetworkreplfactory.h \
soprano_statement_qhash.h webextractor_export.h /config.h config.h""".split(" "),
# Cpp parsing
preprocessSubstitutionMacros=qtkdemacros.QtPreprocessSubstitutionMacros(),
macros=qtkdemacros.QtMacros(),
bareMacros=qtkdemacros.QtBareMacros(["WEBEXTRACTOR_EXPORT"]),
# Sip generation
sipImportDirs=[sipImportDir],
sipImports=["QtCore/QtCoremod.sip","QtGui/QtGuimod.sip","QtNetwork/QtNetworkmod.sip"],
copyrightNotice=qtkdemacros.copyrightNotice(),
exportMacros=["WEBEXTRACTOR_EXPORT"],
ignoreBases=[],
annotationRules=[
toolkit.AnnotationRule(
methodTypeMatch="*",
parameterTypeMatch=["QWidget*","QObject*"],
parameterNameMatch="parent",
annotations="TransferThis"),
toolkit.AnnotationRule(
methodTypeMatch="ctor",
parameterTypeMatch=["QWidget*","QObject*"],
parameterNameMatch="pParent",
annotations="TransferThis")
]
)
##################################################3
webextractor.run()
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic