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

List:       pykde
Subject:    Re: [PyQt] Using distutils / setuptools for SIP extensions?
From:       Elvis Stansvik <elvstone () gmail ! com>
Date:       2015-05-09 10:35:48
Message-ID: CAHms=ebWZiWFDS71yQPV+m4RhnLLUGRxhsrsAw9WN571ex0mAA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2015-05-09 12:21 GMT+02:00 Elvis Stansvik <elvstone@gmail.com>:

> 2015-05-09 12:17 GMT+02:00 Phil Thompson <phil@riverbankcomputing.com>:
>
>> On 08/05/2015 11:11 pm, Elvis Stansvik wrote:
>>
>>> Hi all,
>>>
>>> I'm considering using SIP for an upcoming project.
>>>
>>> The docs at [1] says that
>>>
>>> "Note This should not be used for new projects as it will not be
>>> supported
>>> by SIP v5."
>>>
>>> If I want to use regular setuptools to build my extension (instead of the
>>> configure.py which I've seen used in SIP project), then what am I to do
>>> once SIP v5 is the new kid on the block?
>>>
>>
>> I'm not sure exactly how this will be handled in SIP v5 but you can
>> expect that there will be some help. The main change that should help is
>> that the sip code generator will be accessible as a Python package so you
>> will be able to import it into your setup.py.
>
>
> Music to my ears. Thanks Phil!
>

As a side note, I realized now that I will never quite reach the simplicity
of just `pip install myext`: Since the setup.py itself will be dependant on
SIP, I'll have a chicken-and-egg problem, and it will have to be `pip
install SIP` and then `pip install myext`. But that's fine, and I have the
same "problem" now actually, since I'm using pyqt-distutils to invoke
pyuic4 at setup time, which requires to user to first install
pyqt-distutils, then setup.py. I'm fine with that.

Elvis


> Elvis
>
>
>>
>>
>> Phil
>>
>>
>> _______________________________________________
>> PyQt mailing list    PyQt@riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-05-09 12:21 \
GMT+02:00 Elvis Stansvik <span dir="ltr">&lt;<a href="mailto:elvstone@gmail.com" \
target="_blank">elvstone@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">2015-05-09 \
12:17 GMT+02:00 Phil Thompson <span dir="ltr">&lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span>On 08/05/2015 11:11 pm, Elvis Stansvik wrote:<br> \
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hi all,<br>
<br>
I&#39;m considering using SIP for an upcoming project.<br>
<br>
The docs at [1] says that<br>
<br>
&quot;Note This should not be used for new projects as it will not be supported<br>
by SIP v5.&quot;<br>
<br>
If I want to use regular setuptools to build my extension (instead of the<br>
configure.py which I&#39;ve seen used in SIP project), then what am I to do<br>
once SIP v5 is the new kid on the block?<br>
</blockquote>
<br></span>
I&#39;m not sure exactly how this will be handled in SIP v5 but you can expect that \
there will be some help. The main change that should help is that the sip code \
generator will be accessible as a Python package so you will be able to import it \
into your setup.py.</blockquote><div><br></div></span><div>Music to my ears. Thanks \
Phil!</div></div></div></div></blockquote><div><br></div><div>As a side note, I \
realized now that I will never quite reach the simplicity of just `pip install \
myext`: Since the setup.py itself will be dependant on SIP, I&#39;ll have a \
chicken-and-egg problem, and it will have to be `pip install SIP` and then `pip \
install myext`. But that&#39;s fine, and I have the same &quot;problem&quot; now \
actually, since I&#39;m using pyqt-distutils to invoke pyuic4 at setup time, which \
requires to user to first install pyqt-distutils, then setup.py. I&#39;m fine with \
that.</div><div><br></div><div>Elvis</div><div><br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div \
class="gmail_quote"><span class="HOEnZb"><font \
color="#888888"><div><br></div><div>Elvis</div></font></span><span class=""><div>  \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span><font color="#888888"><br> <br>
Phil</font></span><div><div><br>
<br>
_______________________________________________<br>
PyQt mailing list      <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div></div></blockquote></span></div><br></div></div>
 </blockquote></div><br></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

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