[Scons-users] TryRun() problem with python3 scons-3.0.1
Bill Deegan
bill at baddogconsulting.com
Sun Mar 11 11:59:26 EDT 2018
Can someone provide a small reproducer?
-Bill
On Sun, Mar 11, 2018 at 3:42 AM, Dave Plater <dplater.list at gmail.com> wrote:
>
>
> On 10/03/18 22:26, Bill Deegan wrote:
>
>> Can you try changing:
>>
>> outputStr =SCons.Util.to_str(output.get_contents())
>>
>> to
>>
>> outputStr =SCons.Util.to_str(output.get_text_contents())
>>
>> in SCons/SConf.py around line 646 in TryRun()?
>> And see if that resolves the issue..
>>
>> -Bill
>>
>>
> Hi Bill, it doesn't resolve the issue but I did go further and inserted a
> couple of print statements into TryBuild where it goes wrong.
> The result of (the first line is about line 584 in SConf.py):
> nodes = builder(target = target, source = source)
> print("\nnodes = ",nodes)
> if not SCons.Util.is_List(nodes):
> nodes = [nodes]
> print("\n[nodes] = ",nodes)
> nodesToBeBuilt.extend(nodes)
> result = self.BuildNodes(nodesToBeBuilt)
> print("\nresult = ",result)
>
> This results in :
> Checking for a working C-compiler TryLink
>
> nodes = ['cache/conftest_0']
>
> TypeError : sequence item 0: expected str instance, bytes found
>
> Thanks
> Dave
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180311/ac76d409/attachment.html>
More information about the Scons-users
mailing list