5

Is there a more streamlined process in embedding a Python interpreter, with numpy and scipy libraries, in a macOS application project using XCode? I suppose, to be more specific here, embedding Python, with numpy and scipy libraries, that does not link to any dylibs that are licensed with GPL?

Reason why I ask is that I have noticed that the contents of numpy & scipy's folders in my Python source installation both contain a dylibs folder:

dylibs

In addition, both libraries indicated in their respective License.txt file that:

This binary distribution of NumPy also bundles the following software:

Name: GCC runtime library Files: .dylibs/* Description: dynamically linked to files compiled with gcc Availability: https://gcc.gnu.org/viewcvs/gcc/ License: GPLv3 + runtime exception

This binary distribution of Scipy also bundles the following software:

Name: GCC runtime library Files: .dylibs/* Description: dynamically linked to files compiled with gcc Availability: https://gcc.gnu.org/viewcvs/gcc/ License: GPLv3 + runtime exception

While I understand that numpy and scipy are licensed under BSD, the way I am using these libraries entails I have to embed the Python interpreter in my application's bundle. So, I am a bit of a loss, or perhaps I am simply misunderstanding what it means to embed Python in an application. Can anyone shed light on this particular situation?

For additional reference, these are the instructions I have followed for embedding Python in a Cocoa application:

How to embed python in an Objective-C OS X application for plugins?

Getting Python to work in Cocoa App

Any input is appreciated. Thank you.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.