Swiftpack.co - PerfectSideRepos/Perfect-Python3API as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by PerfectSideRepos.
PerfectSideRepos/Perfect-Python3API 3.8.0
Python 3 C module for Swift 4.2
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/PerfectSideRepos/Perfect-Python3API.git", from: "3.8.0")

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/[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

Further Information

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

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3.5.0
5 years ago

INIT

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics