Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Linux .so C-Extension works when importing functions into python; however, Mac OS X fails to import functions (i.e. import errors) #2907
Using Python 3.6
The C-extension was originally created on Linux machine and it works properly when importing it into another project. File Structure:
When executing the build_ext on Mac to create a mac binary the
They are nested together under a parent package.
This works in Linux. I import the functions in the c_ext in the peer init.py, then in python_func.py I do from c_ext import python_func. If this is not the proper way to use a function defined in a c extension in python, then what is the proper way?