[swift-dev] Building swift-3.1-branch from source

Vivian Kong vivkong at ca.ibm.com
Tue Apr 25 09:15:23 CDT 2017


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 at swift.org>
To:	Alex Blewitt <alblue at apple.com>
Cc:	swift-dev <swift-dev at swift.org>
Date:	2017/04/25 08:40 AM
Subject:	Re: [swift-dev] Building swift-3.1-branch from source
Sent by:	swift-dev-bounces at swift.org



On 25 April 2017 at 13:30, Alex Blewitt <alblue at 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 at swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170425/8351f685/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170425/8351f685/attachment.gif>


More information about the swift-dev mailing list