<html><body><p><font size="2">I had to remove swift/utils/swift_build_support/__init__.pyc if it is there (it got generated when I use the checkout script from the master branch). Wonder if that might help you.</font><br><font size="2"><br>Regards,<br><br>Vivian Kong<br>Linux on z Systems Open Source Ecosystem<br>IBM Canada Toronto Lab</font><br><br><img width="16" height="16" src="cid:1__=0ABB0B9EDFDD91208f9e8a93df938690918c0AB@" border="0" alt="Inactive hide details for Ian Partridge via swift-dev ---2017/04/25 08:40:58 AM---On 25 April 2017 at 13:30, Alex Blewitt <albl"><font size="2" color="#424282">Ian Partridge via swift-dev ---2017/04/25 08:40:58 AM---On 25 April 2017 at 13:30, Alex Blewitt <alblue@apple.com> wrote: > You can use ./swift/utils/update</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Ian Partridge via swift-dev <swift-dev@swift.org></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">Alex Blewitt <alblue@apple.com></font><br><font size="2" color="#5F5F5F">Cc: </font><font size="2">swift-dev <swift-dev@swift.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">2017/04/25 08:40 AM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">Re: [swift-dev] Building swift-3.1-branch from source</font><br><font size="2" color="#5F5F5F">Sent by: </font><font size="2">swift-dev-bounces@swift.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">On 25 April 2017 at 13:30, Alex Blewitt <alblue@apple.com> wrote:<br>> You can use ./swift/utils/update-checkout --scheme swift-3.1-branch which will switch the branches to the right place for you. Some of the git repositories aren't necessarily the same; using the update-checkout script to select the right ones will be more successful. You can also use --reset-to-remote if you've made local changes that you want to throw away or want to ensure that it does the right thing from a clean update.<br><br>Thanks Alex, I wasn't aware of --scheme.<br><br>Unfortunately the same problem is present after using that though:<br><br>$ git clone </font></tt><tt><font size="2"><a href="https://github.com/apple/swift.git">https://github.com/apple/swift.git</a></font></tt><tt><font size="2"> # fine<br>$ ./swift/utils/update-checkout --clone # fine<br>$ ./swift/utils/update-checkout --scheme swift-3.1-branch # fine<br>$ ./swift/utils/build-script --preset=buildbot_linux<br>install_destdir=/home/ipartrid/swift-3.1<br>installable_package=/home/ipartrid/swift-3.1.tar.gz<br>Traceback (most recent call last):<br> File "./swift/utils/build-script", line 27, in <module><br> from SwiftBuildSupport import (<br> File "/home/ipartrid/swift-source/swift/utils/SwiftBuildSupport.py",<br>line 26, in <module><br> from swift_build_support import diagnostics # noqa (E402)<br>ImportError: cannot import name diagnostics<br><br>-- <br>Ian Partridge<br>_______________________________________________<br>swift-dev mailing list<br>swift-dev@swift.org<br></font></tt><tt><font size="2"><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>