The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of PythonKit, reference master (6fee76), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 05:01:41 UTC.

Swift 6 data race errors: 15

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvieito/PythonKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pvieito/PythonKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 6fee761 Fix warnings.
Cloned https://github.com/pvieito/PythonKit.git
Revision (git rev-parse @):
6fee7617cfa910fbac7035276e295ba967adbbb4
SUCCESS checkout https://github.com/pvieito/PythonKit.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "pythonkit",
      "name": "PythonKit",
      "url": "https://github.com/pvieito/PythonKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PythonKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/pvieito/PythonKit.git
[1/1633] Fetching pythonkit
Fetched https://github.com/pvieito/PythonKit.git from cache (1.00s)
Creating working copy for https://github.com/pvieito/PythonKit.git
Working copy of https://github.com/pvieito/PythonKit.git resolved at master (6fee761)
warning: '.resolve-product-dependencies': dependency 'pythonkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pvieito/PythonKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PythonKit",
  "name" : "PythonKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PythonKit",
      "targets" : [
        "PythonKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PythonKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PythonKitTests",
      "path" : "Tests/PythonKitTests",
      "sources" : [
        "NumpyConversionTests.swift",
        "PythonFunctionTests.swift",
        "PythonRuntimeTests.swift"
      ],
      "target_dependencies" : [
        "PythonKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PythonKit",
      "module_type" : "SwiftTarget",
      "name" : "PythonKit",
      "path" : "PythonKit",
      "product_memberships" : [
        "PythonKit"
      ],
      "sources" : [
        "NumpyConversion.swift",
        "Python.swift",
        "PythonLibrary+Symbols.swift",
        "PythonLibrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling PythonKit PythonLibrary+Symbols.swift
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:228:5: warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
226 |         legacyName: "PyString_AsStringAndSize")
227 |
228 | let _Py_ZeroStruct: PyObjectPointer =
    |     |- warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_Py_ZeroStruct' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 |     PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:231:5: warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
229 |     PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
231 | let _Py_TrueStruct: PyObjectPointer =
    |     |- warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_Py_TrueStruct' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 |     PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:234:5: warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
232 |     PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
234 | let PyBool_Type: PyObjectPointer =
    |     |- warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'PyBool_Type' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |     PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:237:5: warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
235 |     PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
237 | let PySlice_Type: PyObjectPointer =
    |     |- warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'PySlice_Type' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |     PythonLibrary.loadSymbol(name: "PySlice_Type")
239 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
[4/7] Compiling PythonKit PythonLibrary.swift
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:51:24: warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |
 50 | #if canImport(Darwin)
 51 |     private static let defaultLibraryHandle = UnsafeMutableRawPointer(bitPattern: -2)  // RTLD_DEFAULT
    |                        |- warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'defaultLibraryHandle' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 | #else
 53 |     private static let defaultLibraryHandle: UnsafeMutableRawPointer? = nil  // RTLD_DEFAULT
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:56:24: warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 | #endif
 55 |
 56 |     private static var isPythonLibraryLoaded = false
    |                        |- warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'isPythonLibraryLoaded' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isPythonLibraryLoaded' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |     private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
 58 |     private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:57:24: warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |
 56 |     private static var isPythonLibraryLoaded = false
 57 |     private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
    |                        |- warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_pythonLibraryHandle' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate '_pythonLibraryHandle' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |     private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
 59 |         try! PythonLibrary.loadLibrary()
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:102:24: warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | #if canImport(Darwin)
102 |     private static var libraryNames = ["Python.framework/Versions/:/Python"]
    |                        |- warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'libraryNames' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'libraryNames' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 |     private static var libraryPathExtensions = [""]
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:103:24: warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | #if canImport(Darwin)
102 |     private static var libraryNames = ["Python.framework/Versions/:/Python"]
103 |     private static var libraryPathExtensions = [""]
    |                        |- warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'libraryPathExtensions' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'libraryPathExtensions' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
105 |     private static var libraryVersionSeparator = "."
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:104:24: warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 |     private static var libraryNames = ["Python.framework/Versions/:/Python"]
103 |     private static var libraryPathExtensions = [""]
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
    |                        |- warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'librarySearchPaths' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'librarySearchPaths' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     private static var libraryVersionSeparator = "."
106 | #elseif os(Linux)
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:105:24: warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |     private static var libraryPathExtensions = [""]
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
105 |     private static var libraryVersionSeparator = "."
    |                        |- warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'libraryVersionSeparator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'libraryVersionSeparator' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | #elseif os(Linux)
107 |     private static var libraryNames = ["libpython:", "libpython:m"]
[5/7] Compiling PythonKit NumpyConversion.swift
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:663:12: warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
 661 | ///     print(Python.type(list) == Python.list) // Prints true.
 662 | @_fixed_layout
 663 | public let Python = PythonInterface()
     |            |- warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: annotate 'Python' with '@MainActor' if property should only be accessed from the main actor
     |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 664 |
 665 | /// An interface for Python.
     :
 671 | ///   called `Python`.
 672 | @dynamicMemberLookup
 673 | public struct PythonInterface {
     |               `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
 674 |     /// A dictionary of the Python builtins.
 675 |     public let builtins: PythonObject
[6/7] Compiling PythonKit Python.swift
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:663:12: warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
 661 | ///     print(Python.type(list) == Python.list) // Prints true.
 662 | @_fixed_layout
 663 | public let Python = PythonInterface()
     |            |- warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: annotate 'Python' with '@MainActor' if property should only be accessed from the main actor
     |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 664 |
 665 | /// An interface for Python.
     :
 671 | ///   called `Python`.
 672 | @dynamicMemberLookup
 673 | public struct PythonInterface {
     |               `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
 674 |     /// A dictionary of the Python builtins.
 675 |     public let builtins: PythonObject
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:1733:16: warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1731 |
1732 | fileprivate extension PythonFunction {
1733 |     static let sharedMethodDefinition: UnsafeMutablePointer<PyMethodDef> = {
     |                |- warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'sharedMethodDefinition' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1734 |         let name: StaticString = "pythonkit_swift_function"
1735 |         // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:1755:16: warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1753 |     }()
1754 |
1755 |     static let sharedMethodWithKeywordsDefinition: UnsafeMutablePointer<PyMethodDef> = {
     |                |- warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'sharedMethodWithKeywordsDefinition' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1756 |         let name: StaticString = "pythonkit_swift_function_with_keywords"
1757 |         // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:92:21: warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
  38 | //   implement move semantics.
  39 | @usableFromInline @_fixed_layout
  40 | final class PyReference {
     |             `- note: class 'PyReference' does not conform to the 'Sendable' protocol
  41 |     private var pointer: OwnedPyObjectPointer
  42 |
     :
  90 | public struct PythonObject {
  91 |     /// The underlying `PyReference`.
  92 |     fileprivate var reference: PyReference
     |                     `- warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
  93 |
  94 |     @usableFromInline
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:228:5: warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
226 |         legacyName: "PyString_AsStringAndSize")
227 |
228 | let _Py_ZeroStruct: PyObjectPointer =
    |     |- warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_Py_ZeroStruct' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 |     PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:234:5: warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
232 |     PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
234 | let PyBool_Type: PyObjectPointer =
    |     |- warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'PyBool_Type' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |     PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:231:5: warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
229 |     PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
231 | let _Py_TrueStruct: PyObjectPointer =
    |     |- warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_Py_TrueStruct' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 |     PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:237:5: warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
235 |     PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
237 | let PySlice_Type: PyObjectPointer =
    |     |- warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'PySlice_Type' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |     PythonLibrary.loadSymbol(name: "PySlice_Type")
239 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
[7/7] Emitting module PythonKit
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:663:12: warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
 661 | ///     print(Python.type(list) == Python.list) // Prints true.
 662 | @_fixed_layout
 663 | public let Python = PythonInterface()
     |            |- warning: let 'Python' is not concurrency-safe because non-'Sendable' type 'PythonInterface' may have shared mutable state; this is an error in the Swift 6 language mode
     |            |- note: annotate 'Python' with '@MainActor' if property should only be accessed from the main actor
     |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 664 |
 665 | /// An interface for Python.
     :
 671 | ///   called `Python`.
 672 | @dynamicMemberLookup
 673 | public struct PythonInterface {
     |               `- note: consider making struct 'PythonInterface' conform to the 'Sendable' protocol
 674 |     /// A dictionary of the Python builtins.
 675 |     public let builtins: PythonObject
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:1733:16: warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1731 |
1732 | fileprivate extension PythonFunction {
1733 |     static let sharedMethodDefinition: UnsafeMutablePointer<PyMethodDef> = {
     |                |- warning: static property 'sharedMethodDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'sharedMethodDefinition' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1734 |         let name: StaticString = "pythonkit_swift_function"
1735 |         // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:1755:16: warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
1753 |     }()
1754 |
1755 |     static let sharedMethodWithKeywordsDefinition: UnsafeMutablePointer<PyMethodDef> = {
     |                |- warning: static property 'sharedMethodWithKeywordsDefinition' is not concurrency-safe because non-'Sendable' type 'UnsafeMutablePointer<PyMethodDef>' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: annotate 'sharedMethodWithKeywordsDefinition' with '@MainActor' if property should only be accessed from the main actor
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1756 |         let name: StaticString = "pythonkit_swift_function_with_keywords"
1757 |         // `utf8Start` is a property of StaticString, thus, it has a stable pointer.
Swift.UnsafeMutablePointer:1:23: note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutablePointer<Pointee> : Copyable where Pointee : ~Copyable {
  |                       `- note: generic struct 'UnsafeMutablePointer' does not conform to the 'Sendable' protocol
2 |     public let _rawValue: Builtin.RawPointer
3 |     public init(_ _rawValue: Builtin.RawPointer)
/Users/admin/builder/spi-builder-workspace/PythonKit/Python.swift:92:21: warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
  38 | //   implement move semantics.
  39 | @usableFromInline @_fixed_layout
  40 | final class PyReference {
     |             `- note: class 'PyReference' does not conform to the 'Sendable' protocol
  41 |     private var pointer: OwnedPyObjectPointer
  42 |
     :
  90 | public struct PythonObject {
  91 |     /// The underlying `PyReference`.
  92 |     fileprivate var reference: PyReference
     |                     `- warning: stored property 'reference' of 'Sendable'-conforming struct 'PythonObject' has non-sendable type 'PyReference'; this is an error in the Swift 6 language mode
  93 |
  94 |     @usableFromInline
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:228:5: warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
226 |         legacyName: "PyString_AsStringAndSize")
227 |
228 | let _Py_ZeroStruct: PyObjectPointer =
    |     |- warning: let '_Py_ZeroStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_Py_ZeroStruct' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
229 |     PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:231:5: warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
229 |     PythonLibrary.loadSymbol(name: "_Py_ZeroStruct")
230 |
231 | let _Py_TrueStruct: PyObjectPointer =
    |     |- warning: let '_Py_TrueStruct' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate '_Py_TrueStruct' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 |     PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:234:5: warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
232 |     PythonLibrary.loadSymbol(name: "_Py_TrueStruct")
233 |
234 | let PyBool_Type: PyObjectPointer =
    |     |- warning: let 'PyBool_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'PyBool_Type' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
235 |     PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary+Symbols.swift:237:5: warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
235 |     PythonLibrary.loadSymbol(name: "PyBool_Type")
236 |
237 | let PySlice_Type: PyObjectPointer =
    |     |- warning: let 'PySlice_Type' is not concurrency-safe because non-'Sendable' type 'PyObjectPointer' (aka 'UnsafeMutableRawPointer') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'PySlice_Type' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |     PythonLibrary.loadSymbol(name: "PySlice_Type")
239 |
Swift.UnsafeMutableRawPointer:1:23: note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeMutableRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:51:24: warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |
 50 | #if canImport(Darwin)
 51 |     private static let defaultLibraryHandle = UnsafeMutableRawPointer(bitPattern: -2)  // RTLD_DEFAULT
    |                        |- warning: static property 'defaultLibraryHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'defaultLibraryHandle' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 | #else
 53 |     private static let defaultLibraryHandle: UnsafeMutableRawPointer? = nil  // RTLD_DEFAULT
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:56:24: warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 54 | #endif
 55 |
 56 |     private static var isPythonLibraryLoaded = false
    |                        |- warning: static property 'isPythonLibraryLoaded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'isPythonLibraryLoaded' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isPythonLibraryLoaded' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |     private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
 58 |     private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:57:24: warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 55 |
 56 |     private static var isPythonLibraryLoaded = false
 57 |     private static var _pythonLibraryHandle: UnsafeMutableRawPointer?
    |                        |- warning: static property '_pythonLibraryHandle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert '_pythonLibraryHandle' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate '_pythonLibraryHandle' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |     private static var pythonLibraryHandle: UnsafeMutableRawPointer? {
 59 |         try! PythonLibrary.loadLibrary()
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:102:24: warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
100 |
101 | #if canImport(Darwin)
102 |     private static var libraryNames = ["Python.framework/Versions/:/Python"]
    |                        |- warning: static property 'libraryNames' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'libraryNames' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'libraryNames' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 |     private static var libraryPathExtensions = [""]
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:103:24: warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | #if canImport(Darwin)
102 |     private static var libraryNames = ["Python.framework/Versions/:/Python"]
103 |     private static var libraryPathExtensions = [""]
    |                        |- warning: static property 'libraryPathExtensions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'libraryPathExtensions' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'libraryPathExtensions' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
105 |     private static var libraryVersionSeparator = "."
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:104:24: warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 |     private static var libraryNames = ["Python.framework/Versions/:/Python"]
103 |     private static var libraryPathExtensions = [""]
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
    |                        |- warning: static property 'librarySearchPaths' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'librarySearchPaths' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'librarySearchPaths' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 |     private static var libraryVersionSeparator = "."
106 | #elseif os(Linux)
/Users/admin/builder/spi-builder-workspace/PythonKit/PythonLibrary.swift:105:24: warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
103 |     private static var libraryPathExtensions = [""]
104 |     private static var librarySearchPaths = ["", "/opt/homebrew/Frameworks/", "/usr/local/Frameworks/"]
105 |     private static var libraryVersionSeparator = "."
    |                        |- warning: static property 'libraryVersionSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'libraryVersionSeparator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'libraryVersionSeparator' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | #elseif os(Linux)
107 |     private static var libraryNames = ["libpython:", "libpython:m"]
Build complete! (3.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PythonKit",
  "name" : "PythonKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PythonKit",
      "targets" : [
        "PythonKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PythonKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PythonKitTests",
      "path" : "Tests/PythonKitTests",
      "sources" : [
        "NumpyConversionTests.swift",
        "PythonFunctionTests.swift",
        "PythonRuntimeTests.swift"
      ],
      "target_dependencies" : [
        "PythonKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PythonKit",
      "module_type" : "SwiftTarget",
      "name" : "PythonKit",
      "path" : "PythonKit",
      "product_memberships" : [
        "PythonKit"
      ],
      "sources" : [
        "NumpyConversion.swift",
        "Python.swift",
        "PythonLibrary+Symbols.swift",
        "PythonLibrary.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.