The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PythonBridge with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gabrielnica/pythonbridge.git
Reference: 1.0.0
Cloned https://github.com/gabrielnica/pythonbridge.git into spi-builder-workspace
SUCCESS checkout https://github.com/gabrielnica/pythonbridge.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: you may be able to install python-2.7 using your system-packager:
    apt-get install python
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module PythonBridge
/host/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"
                    ^
/host/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build C module 'CPython'
import CPython
       ^
[2/2] Compiling PythonBridge PythonBridge.swift
/host/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"
                    ^
/host/spi-builder-workspace/Sources/PythonBridge/PythonBridge.swift:22:8: error: could not build C module 'CPython'
import CPython
       ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2