What broke?
This package built fine 10 days ago? It doesn't even begin to build now. Just the error:
Traceback (most recent call last): File "configure.py", line 31, in <module> from sip4_tqt import sipconfig ImportError: No module named sip4_tqt
Huh?
On 02/05/2014 04:34 PM, David C. Rankin wrote:
What broke?
This package built fine 10 days ago? It doesn't even begin to build now. Just the error:
Traceback (most recent call last): File "configure.py", line 31, in <module> from sip4_tqt import sipconfig ImportError: No module named sip4_tqt
Huh?
Or should it be what broke sip4_tqt. sip4_tqt built without error, but damnit, it isn't working anymore -- what changed? why is there no module named sip4_tqt for python_tqt to find??
On Wednesday 05 of February 2014 23:56:31 David C. Rankin wrote:
On 02/05/2014 04:34 PM, David C. Rankin wrote:
What broke?
This package built fine 10 days ago? It doesn't even begin to build now. Just the error:
Traceback (most recent call last): File "configure.py", line 31, in <module> from sip4_tqt import sipconfig ImportError: No module named sip4_tqt
Huh?
Or should it be what broke sip4_tqt. sip4_tqt built without error, but damnit, it isn't working anymore -- what changed? why is there no module named sip4_tqt for python_tqt to find??
Try patches from bug 1790.
Slavek --
On 02/05/2014 04:58 PM, Slávek Banko wrote:
On Wednesday 05 of February 2014 23:56:31 David C. Rankin wrote:
On 02/05/2014 04:34 PM, David C. Rankin wrote:
What broke?
This package built fine 10 days ago? It doesn't even begin to build now. Just the error:
Traceback (most recent call last): File "configure.py", line 31, in <module> from sip4_tqt import sipconfig ImportError: No module named sip4_tqt
Huh?
Or should it be what broke sip4_tqt. sip4_tqt built without error, but damnit, it isn't working anymore -- what changed? why is there no module named sip4_tqt for python_tqt to find??
Try patches from bug 1790.
Slavek
I've read through it until I'm blue in the face and I can't figure out what it means to my build script. How are you building it? Obviously my build for python-sip and python2-sip build but are now completely broken. I'm building with:
CFLAGS="${CFLAGS} -I/usr/include/tqt -I${TDEDIR}/include -I${QTDIR}/include"
cd ${srcdir}
## copy source for Python build cp -r ${pkgbase#*-} sipPy3
## Python version msg "Running python configure.py (python3 based sip)...." cd ${srcdir}/sipPy3 python configure.py CFLAGS="${CFLAGS}" msg "Building - tde-sip (python3 based sip)..." make $NUMJOBS
## Python2 version msg "Running python2 configure.py (sip4-tqt)...." cd ${srcdir}/${pkgbase#*-} python2 configure.py CFLAGS="${CFLAGS}" msg "Building - ${pkgbase}..." make $NUMJOBS
}
# python-sip package_tde-sip() { cd "${srcdir}/sipPy3" make -j1 DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
# python2-sip package_tde-sip4-tqt() { cd "${srcdir}/${pkgbase#*-}" make -j1 DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Provided by tde-sip rm "${pkgdir}/usr/bin/sip" }
But the resulting packages DO NOT WORK for python-tqt. How does the build need to change to accommodate 1790? I really don't understand what 1790 did??
On 02/05/2014 05:09 PM, David C. Rankin wrote:
On 02/05/2014 04:58 PM, Slávek Banko wrote:
On Wednesday 05 of February 2014 23:56:31 David C. Rankin wrote:
On 02/05/2014 04:34 PM, David C. Rankin wrote:
What broke?
This package built fine 10 days ago? It doesn't even begin to build now. Just the error:
Traceback (most recent call last): File "configure.py", line 31, in <module> from sip4_tqt import sipconfig ImportError: No module named sip4_tqt
Huh?
Or should it be what broke sip4_tqt. sip4_tqt built without error, but damnit, it isn't working anymore -- what changed? why is there no module named sip4_tqt for python_tqt to find??
Try patches from bug 1790.
Slavek
I've read through it until I'm blue in the face and I can't figure out what it means to my build script. How are you building it? Obviously my build for python-sip and python2-sip build but are now completely broken. I'm building with:
CFLAGS="${CFLAGS} -I/usr/include/tqt -I${TDEDIR}/include -I${QTDIR}/include"
cd ${srcdir}
## copy source for Python build cp -r ${pkgbase#*-} sipPy3
## Python version msg "Running python configure.py (python3 based sip)...." cd ${srcdir}/sipPy3 python configure.py CFLAGS="${CFLAGS}" msg "Building - tde-sip (python3 based sip)..." make $NUMJOBS
## Python2 version msg "Running python2 configure.py (sip4-tqt)...." cd ${srcdir}/${pkgbase#*-} python2 configure.py CFLAGS="${CFLAGS}" msg "Building - ${pkgbase}..." make $NUMJOBS
}
# python-sip package_tde-sip() { cd "${srcdir}/sipPy3" make -j1 DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
# python2-sip package_tde-sip4-tqt() { cd "${srcdir}/${pkgbase#*-}" make -j1 DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Provided by tde-sip rm "${pkgdir}/usr/bin/sip" }
But the resulting packages DO NOT WORK for python-tqt. How does the build need to change to accommodate 1790? I really don't understand what 1790 did??
Let's do it this way... Is this not the right content for python-sip and python2-sip?
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip.so usr/lib/python3.3/site-packages/sipconfig.py usr/lib/python3.3/site-packages/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip.so usr/lib/python2.7/site-packages/sipconfig.py usr/lib/python2.7/site-packages/sipdistutils.py
If these are right, then it is just python-tqt that is broken
On Thursday 06 of February 2014 00:15:42 David C. Rankin wrote:
Let's do it this way... Is this not the right content for python-sip and python2-sip?
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip.so usr/lib/python3.3/site-packages/sipconfig.py usr/lib/python3.3/site-packages/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip.so usr/lib/python2.7/site-packages/sipconfig.py usr/lib/python2.7/site-packages/sipdistutils.py
If these are right, then it is just python-tqt that is broken
Have you tried to sip4-tqt add patch 1912 (sip4-tqt : install as module by default) from bug 1790? If patch 1912 is correct, the files should be installed in a subfolder sip4_tqt. As follows:
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip4_tqt/__init__.py usr/lib/python3.3/site-packages/sip4_tqt/sip.so usr/lib/python3.3/site-packages/sip4_tqt/sipconfig.py usr/lib/python3.3/site-packages/sip4_tqt/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip4_tqt/__init__.py usr/lib/python2.7/site-packages/sip4_tqt/sip.so usr/lib/python2.7/site-packages/sip4_tqt/sipconfig.py usr/lib/python2.7/site-packages/sip4_tqt/sipdistutils.py
Slavek --
On 02/05/2014 07:42 PM, Slávek Banko wrote:
Have you tried to sip4-tqt add patch 1912 (sip4-tqt : install as module by default) from bug 1790? If patch 1912 is correct, the files should be installed in a subfolder sip4_tqt. As follows:
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip4_tqt/__init__.py usr/lib/python3.3/site-packages/sip4_tqt/sip.so usr/lib/python3.3/site-packages/sip4_tqt/sipconfig.py usr/lib/python3.3/site-packages/sip4_tqt/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip4_tqt/__init__.py usr/lib/python2.7/site-packages/sip4_tqt/sip.so usr/lib/python2.7/site-packages/sip4_tqt/sipconfig.py usr/lib/python2.7/site-packages/sip4_tqt/sipdistutils.py
Slavek
Thank you Slavek,
I have it sorted. I see the subfolder move, but do not understand why using sip as a module instead of an executable is preferred. However, I see the benefit in resolving the conflict with upstream sip. I've simply been replacing the upstream 'sip' provided file with 'tde-sip' since I was building with upstream anyway. It was just frustrating to be cramped on time and then to run into dependency packages changing locations in the filesystem.
On Thursday 06 of February 2014 16:46:25 David C. Rankin wrote:
On 02/05/2014 07:42 PM, Slávek Banko wrote:
Have you tried to sip4-tqt add patch 1912 (sip4-tqt : install as module by default) from bug 1790? If patch 1912 is correct, the files should be installed in a subfolder sip4_tqt. As follows:
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip4_tqt/__init__.py usr/lib/python3.3/site-packages/sip4_tqt/sip.so usr/lib/python3.3/site-packages/sip4_tqt/sipconfig.py usr/lib/python3.3/site-packages/sip4_tqt/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip4_tqt/__init__.py usr/lib/python2.7/site-packages/sip4_tqt/sip.so usr/lib/python2.7/site-packages/sip4_tqt/sipconfig.py usr/lib/python2.7/site-packages/sip4_tqt/sipdistutils.py
Slavek
Thank you Slavek,
I have it sorted. I see the subfolder move, but do not understand why using sip as a module instead of an executable is preferred. However, I see the benefit in resolving the conflict with upstream sip. I've simply been replacing the upstream 'sip' provided file with 'tde-sip' since I was building with upstream anyway. It was just frustrating to be cramped on time and then to run into dependency packages changing locations in the filesystem.
The decisive reason for the move to the modules have been just avoid conflict with the standard 'sip' and 'python-qt'.
I assume that both patches (1912, 1913) from bug 1790 can be considered as tested => suitable for pushing to Git.
Slavek --
On 02/05/2014 07:42 PM, Slávek Banko wrote:
On Thursday 06 of February 2014 00:15:42 David C. Rankin wrote:
Let's do it this way... Is this not the right content for python-sip and python2-sip?
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip.so usr/lib/python3.3/site-packages/sipconfig.py usr/lib/python3.3/site-packages/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip.so usr/lib/python2.7/site-packages/sipconfig.py usr/lib/python2.7/site-packages/sipdistutils.py
If these are right, then it is just python-tqt that is broken
Have you tried to sip4-tqt add patch 1912 (sip4-tqt : install as module by default) from bug 1790? If patch 1912 is correct, the files should be installed in a subfolder sip4_tqt. As follows:
tde-sip-R14preRC1-1-i686.pkg.tar.xz usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip4_tqt/__init__.py usr/lib/python3.3/site-packages/sip4_tqt/sip.so usr/lib/python3.3/site-packages/sip4_tqt/sipconfig.py usr/lib/python3.3/site-packages/sip4_tqt/sipdistutils.py
tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip4_tqt/__init__.py usr/lib/python2.7/site-packages/sip4_tqt/sip.so usr/lib/python2.7/site-packages/sip4_tqt/sipconfig.py usr/lib/python2.7/site-packages/sip4_tqt/sipdistutils.py
Slavek
OK,
Done -- here is what I end up with:
tar tJf tde-sip-R14preRC1-1-i686.pkg.tar.xz | grep -v /$ .PKGINFO .MTREE usr/include/python3.3m/sip.h usr/share/licenses/tde-sip/LICENSE usr/bin/sip usr/lib/python3.3/site-packages/sip4_tqt/sip.so usr/lib/python3.3/site-packages/sip4_tqt/sipconfig.py usr/lib/python3.3/site-packages/sip4_tqt/__init__.py usr/lib/python3.3/site-packages/sip4_tqt/sipdistutils.py
tar tJf tde-sip4-tqt-R14preRC1-1-i686.pkg.tar.xz | grep -v /$ .PKGINFO .MTREE usr/include/python2.7/sip.h usr/share/licenses/tde-sip4-tqt/LICENSE usr/lib/python2.7/site-packages/sip4_tqt/sip.so usr/lib/python2.7/site-packages/sip4_tqt/sipconfig.py usr/lib/python2.7/site-packages/sip4_tqt/__init__.py usr/lib/python2.7/site-packages/sip4_tqt/sipdistutils.py
Both in my sip package and in your listing above, we still have /usr/bin/sip, so the conflict remains with upstream sip. What did this accomplish? All I see is that the files were moved into a new 'sip4_tqt' directory -- was that the total intent of the move?