[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Mandate Python 3 in Kate 5
From:       "Philipp A." <flying-sheep () web ! de>
Date:       2014-03-31 21:50:23
Message-ID: CAN8d9gk7bkFRtPE9yNQaESEOxFORPS+1vyRrQvmoXwRd8_BQMQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2014-03-31 22:24 GMT+02:00 Dominik Haumann <dhaumann@kde.org>:
>
>  You should first copy the code from master into frameworks again and
> then start doing the work.
>
> […]
>
> If you want, you can commit this change in KF5, though (seems like only
> the preprocessor statements were removed).
>

Yeah, that change just makes sure that Pâté can only be compiled with
python 3.4, and that there are no superfluous compile time checks which
assume it can be compiled with python <3.3 or even python 2.

i'll commit it tomorrow :)

if you all really want, we *could* change the version to 3.3 (as that's the
version where at least all compile time switches can be removed), but as i
said: i'm of the opinion that the hassle of compiling python 3.4 now is
outweighted by being able to use 3.4 features in the years between KF5 and
KDE 6.

just do the following, and you have python 3.4 in a place where it doesn't
interfere with your system python at all:

./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath
/usr/local/lib"
make && make altinstall

then you can call cmake with the variables PYTHON_LIBRARY (and possibly
PYTHON_INCLUDE_DIR) set (see output of: cmake --help-module FindPythonLibs)

best, phil

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-03-31 22:24 \
GMT+02:00 Dominik Haumann <span dir="ltr">&lt;<a href="mailto:dhaumann@kde.org" \
target="_blank">dhaumann@kde.org</a>&gt;</span>:  <blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

<div class=""><div class="h5">
</div></div>You should first copy the code from master into frameworks again and then \
start doing the work.<br> <br>
[…]<br>
<br>
If you want, you can commit this change in KF5, though (seems like only the \
preprocessor statements were removed).<br></blockquote><div><br></div><div>Yeah, that \
change just makes sure that Pâté can only be compiled with python 3.4, and that \
there are no superfluous compile time checks which assume it can be compiled with \
python &lt;3.3 or even python 2.<br>

<br></div><div>i'll commit it tomorrow :)<br><br></div><div>if you all really want, \
we *could* change the version to 3.3 (as that's the version where at least all \
compile time switches can be removed), but as i said: i'm of the opinion that the \
hassle of compiling python 3.4 now is outweighted by being able to use 3.4 features \
in the years between KF5 and KDE 6.<br>

<br></div><div>just do the following, and you have python 3.4 in a place where it \
doesn't interfere with your system python at all:<br><br><div class="" \
id="crayon-5339e0951a62f787068170-12"><span class="">.</span><span \
class="">/</span><span class="">configure</span><span class=""> </span><span \
class="">--</span><span class="">prefix</span><span class="">=</span><span \
class="">/</span><span class="">usr</span><span class="">/</span><span \
class="">local</span><span class=""> </span><span class="">--</span><span \
class="">enable</span><span class="">-</span><span class="">shared </span><span \
class="">LDFLAGS</span><span class="">=</span><span class="">&quot;-Wl,-rpath \
/usr/local/lib&quot;</span></div>

<div class="" id="crayon-5339e0951a62f787068170-13"><span class="">make</span><span \
class=""> </span><span class="">&amp;&amp;</span><span class=""> </span><span \
class="">make</span><span class=""> </span><span class="">altinstall<br>

<br></span></div><div class="" id="crayon-5339e0951a62f787068170-13"><span \
class="">then you can call cmake with the variables PYTHON_LIBRARY (and possibly \
PYTHON_INCLUDE_DIR) set (see output of: cmake --help-module FindPythonLibs)<br>

<br></span></div><div class="" id="crayon-5339e0951a62f787068170-13"><span \
class="">best, phil<br></span></div><br></div></div></div></div>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic