trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2014

Re: [trinity-devel] python-tqt FTBFS - ImportError: No module named sip4_tqt

From: "David C. Rankin" <drankinatty@...>
Date: Sat, 08 Feb 2014 16:43:40 -0600
On 02/08/2014 04:27 PM, Darrell Anderson wrote:
>>  I have looked at your SlackBuild and I am building with:
> 
> Make sure you download the latest. The latest includes the changes 
> discussed.
> 
>>  CFLAGS="${CFLAGS} -I/usr/include/tqt -I${TDEDIR}/include -
>> I${QTDIR}/include
>> -fpermissive" \
>>  CXXFLAGS="${CXXFLAGS} -I/usr/include/tqt -I${TDEDIR}/include
>> -I${QTDIR}/include -fpermissive" \
>>  echo yes | python2 configure.py \
>>    -d "${PY2LIB}/sip4_tqt" \
>>    -y tqt-mt \
>>    -v /usr/share/sip/tqt
> 
> I install sip4-tqt and python-tqt (and everything else except 
> tqtinterface) to $PREFIX=/opt/trinity.
> 
> Rebuild sip4-tqt before rebuilding python-tqt.
> 
> My current python-tqt configuration:
> 
> if [ "$PREFIX" = "/usr" ]; then
>   FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt -
> I/${QTDIR}/include -I${PREFIX}/include"
> else
>   FLAGS="$CPUOPT -L${PREFIX}/lib${LIBDIRSUFFIX} -I/usr/include/tqt -
> I/${QTDIR}/include -I${PREFIX}/include -I/usr/include"
> fi
> 
> echo "yes" | python configure.py \
>   -b "${PREFIX}/bin" \
>   -d "$PYTHONLIB/python_tqt" \
>   -q "$PREFIX" \
>   -y tqt-mt \
>   -o /usr/lib${LIBDIRSUFFIX} \
>   -v /usr/share/sip/tqt \
>   -u \
>   CFLAGS="$FLAGS" \
>   CXXFLAGS="$FLAGS"
> 
> As I build to /opt/trinity, visually substitute /opt/trinity with 
> $PREFIX and you'll see you are building to /usr (the old build 
> script before the recent patches). The two package configurations 
> have to be updated similarly otherwise python-tqt can't find sip4-
> tqt files.
> 
>>  What has changed? This used to build flawlessly?
> 
> The two packages are now built as modules and a presumption with 
> that is the two packages no longer conflict with upstream distro 
> packages. Thus, /opt/trinity/bin/sip no longer overwrites the 
> distro /usr/bin/sip. Likewise with python-tqt. The module portions 
> of the packages do not overwrite anything because they are 
> installed to their own subdirectories.
> 
> A side comment: why are you using -fpermissive? I don't use that in 
> any build scripts.
> 
> Darrell
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: trinity-devel-unsubscribe@...
> For additional commands, e-mail: trinity-devel-help@...
> Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
> Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
> 
> 

Which sip do we want, the python sip or the python2 sip? I have been installing
the python sip in /usr/bin and it has worked fine. tde-sip was a direct
replacement for upstream sip in that regard. I have simply been removing python2
sip as it was unneeded. I have includes for both python and python2, so leaving
the includes in the default locations make sense - that shouldn't crater the build.

But, which sip should go in /opt/trinity/bin? I can put the python2 sip in
/opt/trinity/bin and python sip in /usr/bin if that will work?

-- 
David C. Rankin, J.D.,P.E.