C module import for Python 3
This files in this repository are part of the requirements for Swift Package Manager support and should not need to be manually cloned.
Library installation:
$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
$ brew install python
Verification:
$ pkg-config python3 --libs --cflags
Library installation:
$ sudo apt-get install -y libpython3-dev python3
Verification:
$ pkg-config python-3.5 --cflags --libs
sudo vi /usr/local/lib/pkgconfig/python3.pc
# See: man pkg-config
prefix=/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: Python
Description: Build a C extension for Python
Requires:
Version: 3.8
Libs.private: -lintl -ldl -framework CoreFoundation
Libs: -L${libdir} # <------------------------- Fix this! originally it looks empty.
Cflags: -I${includedir}/python3.8
For more information on the Perfect project, please visit perfect.org.
link |
Stars: 0 |
Last commit: 3 years ago |
INIT
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics