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

List:       pykde
Subject:    Re: Pyqtdeploy fix for latest macOS cmd line tools
From:       Patrick Stinson <patrickkidd () gmail ! com>
Date:       2021-09-25 4:39:53
Message-ID: 2AA9A9B8-1310-4F4A-95F8-D6FF22B4F586 () gmail ! com
[Download RAW message or body]

Shoot, you know, looks like you can scratch that. There was only a problem when Xcode \
was not installed, and Xcode is required anyway.

Nevertheless, I think `xcrun —show-sdk-version` is a more straightforward way to \
get the version number without parsing a file path.

> On Sep 24, 2021, at 4:20 PM, Patrick Stinson <patrickkidd@gmail.com> wrote:
> 
> Phil,
> 
> Sorry if I'm ignorant as to whether the latest pyqtdeploy will still work with \
> Qt-5.15.2 (I just want my stuff to keep building), but here is a fix to get \
> `pyqtdeploy/platform.py` to correctly read the new macOS sdk version number: 
> 
> # Parse the version number.
> # version_str = os.path.basename(self.apple_sdk)
> 
> # if version_str.startswith(self.sdk_prefix):
> #     version_str = version_str[len(self.sdk_prefix):]
> 
> # if version_str.endswith('.sdk'):
> #     version_str = version_str[:-len('.sdk')]
> 
> version_str = self.run('xcrun', '--show-sdk-version', \
> message_handler=message_handler, capture=True) 
> 
> -Patrick
> 


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class="">Shoot, you know, looks like you can scratch \
that. There was only a problem when Xcode was not installed, and Xcode is required \
anyway.<div class=""><br class=""></div><div class="">Nevertheless, I think `xcrun \
—show-sdk-version` is a more straightforward way to get the version number without \
parsing a file path.<br class=""><div><br class=""><blockquote type="cite" \
class=""><div class="">On Sep 24, 2021, at 4:20 PM, Patrick Stinson &lt;<a \
href="mailto:patrickkidd@gmail.com" class="">patrickkidd@gmail.com</a>&gt; \
wrote:</div><br class="Apple-interchange-newline"><div class=""><div \
style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: \
after-white-space;" class="">Phil,<br class=""><br class="">Sorry if I'm ignorant as \
to whether the latest pyqtdeploy will still work with Qt-5.15.2 (I just want my stuff \
to keep building), but&nbsp;here is a fix to get `pyqtdeploy/platform.py` to \
correctly read the new macOS sdk version number:<br class=""><br class=""><br \
class=""><div style="color: rgb(54, 54, 54); background-color: rgb(255, 255, 255); \
font-family: Menlo, Monaco, &quot;Courier New&quot;, monospace; line-height: 18px; \
white-space: pre;" class=""><div class="">        <span style="color: rgb(146, 205, \
120);" class=""># Parse the version number.</span></div><div class="">        <span \
style="color: rgb(146, 205, 120);" class=""># version_str = \
os.path.basename(self.apple_sdk)</span></div><br class=""><div class="">        <span \
style="color: rgb(146, 205, 120);" class=""># if \
version_str.startswith(self.sdk_prefix):</span></div><div class="">        <span \
style="color: rgb(146, 205, 120);" class="">#     version_str = \
version_str[len(self.sdk_prefix):]</span></div><br class=""><div class="">        \
<span style="color: rgb(146, 205, 120);" class=""># if \
version_str.endswith('.sdk'):</span></div><div class="">        <span style="color: \
rgb(146, 205, 120);" class="">#     version_str = \
version_str[:-len('.sdk')]</span></div><br class=""><div class="">        <span \
style="color: rgb(9, 89, 132);" class="">version_str</span> = <span style="color: \
rgb(9, 89, 132);" class="">self</span>.<span style="color: rgb(99, 99, 36);" \
class="">run</span>(<span style="color: rgb(162, 86, 55);" class="">'xcrun'</span>, \
<span style="color: rgb(162, 86, 55);" class="">'--show-sdk-version'</span>, <span \
style="color: rgb(9, 89, 132);" class="">message_handler</span>=<span style="color: \
rgb(9, 89, 132);" class="">message_handler</span>, <span style="color: rgb(9, 89, \
132);" class="">capture</span>=<span style="color: rgb(63, 151, 223);" \
class="">True</span>)</div></div><br class=""><div style="caret-color: rgb(0, 0, 0);" \
class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0);" \
class="">-Patrick</div><div class=""><br \
class=""></div></div></div></blockquote></div><br class=""></div></body></html>



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

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