Skip to content

Latest commit

 

History

History
104 lines (82 loc) · 3.39 KB

File metadata and controls

104 lines (82 loc) · 3.39 KB

Perfect-Python3API

Get Involed with Perfect!

Star Perfect On Github Chat on Gitter Follow Perfect on Twitter Join the Perfect Slack

Swift 5.3>
    </a>
    <a href= Platforms OS X | Linux License Apache PerfectlySoft Twitter Join the chat at https://gitter.im/PerfectlySoft/Perfect Slack Status

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.

Perfect-Python

Quick start

Mac OSX

Library installation:

$ sudo mkdir /usr/local/Frameworks
$ sudo chown $(whoami):admin /usr/local/Frameworks
$ brew install python

Verification:

$ pkg-config python3 --libs --cflags

Ubuntu 16.04 LTS

Library installation:

$ sudo apt-get install -y libpython3-dev python3

Verification:

$ pkg-config python-3.5 --cflags --libs

Note for macOS

sudo vi /usr/local/lib/pkgconfig/python3.pc

# See: man pkg-config
prefix=/usr/local/opt/python@3.8/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

Further Information

For more information on the Perfect project, please visit perfect.org.