The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PythonBridge with Swift 5.8 for macOS (SPM).

Build Command

env DEVELOPER_DIR="/Applications/Xcode-14.3.0.app" xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.16.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gabrielnica/pythonbridge.git
Reference: master
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/gabrielnica/pythonbridge
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 88fc646 swift version update
Cloned https://github.com/gabrielnica/pythonbridge.git into spi-builder-workspace
88fc646e0701ade38cbf237dd83443972c80f027
SUCCESS checkout https://github.com/gabrielnica/pythonbridge.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.8
Building package at path:  spi-builder-workspace
Running build ...
env DEVELOPER_DIR="/Applications/Xcode-14.3.0.app" xcrun swift build --arch arm64
Building ... (attempt 1)
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install python-2.7 using your system-packager:
    brew install python
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module PythonBridge
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
[2/2] Compiling PythonBridge PythonBridge.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
Retrying in 0 seconds ...
Building ... (attempt 2)
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install python-2.7 using your system-packager:
    brew install python
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module PythonBridge
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
[2/2] Compiling PythonBridge PythonBridge.swift
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/CPython/module.modulemap:18:21: error: umbrella header '/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h' not found
    umbrella header "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h"
                    ^
/Users/builder/builds/o86TiJKT/3/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build Objective-C module 'CPython'
import CPython
       ^
Retrying in 0 seconds ...
BUILD FAILURE 5.8 macosSpm

Build Machine: Mac 5