Contents

r0ml/swiftypython

This is a Swift Package Manager package to easily embed Python in a Mac app. Work is currently underway to have a package which will work on other Apple platforms as well. This package is "universal", meaning it should work with intel or amd hardware.

Building an app using SwiftyPython

  • If you enable hardened runtime, you have to disable library validation.
  • You have to disable user script sandboxing in XCode to allow pip to install into venv/site-packages

Known problems

Although I collect the Python standard output, in the Demo app, it is currently logged to the console, and not displayed in the "stdout" window.

Package Metadata

Repository: r0ml/swiftypython

Default branch: main

README: README.md