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.
Regards, Vivian Kong Linux on z Systems Open Source Ecosystem IBM Canada Toronto Lab From: Ian Partridge via swift-dev <swift-dev@swift.org> To: Alex Blewitt <alb...@apple.com> Cc: swift-dev <swift-dev@swift.org> Date: 2017/04/25 08:40 AM Subject: Re: [swift-dev] Building swift-3.1-branch from source Sent by: swift-dev-boun...@swift.org On 25 April 2017 at 13:30, Alex Blewitt <alb...@apple.com> wrote: > 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. Thanks Alex, I wasn't aware of --scheme. Unfortunately the same problem is present after using that though: $ git clone https://github.com/apple/swift.git # fine $ ./swift/utils/update-checkout --clone # fine $ ./swift/utils/update-checkout --scheme swift-3.1-branch # fine $ ./swift/utils/build-script --preset=buildbot_linux install_destdir=/home/ipartrid/swift-3.1 installable_package=/home/ipartrid/swift-3.1.tar.gz Traceback (most recent call last): File "./swift/utils/build-script", line 27, in <module> from SwiftBuildSupport import ( File "/home/ipartrid/swift-source/swift/utils/SwiftBuildSupport.py", line 26, in <module> from swift_build_support import diagnostics # noqa (E402) ImportError: cannot import name diagnostics -- Ian Partridge _______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev
_______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev