asottile / setuptools-golang-examples

Example extensions written for https://github.com/asottile/setuptools-golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build status pre-commit.ci status

setuptools-golang-examples

A few examples utilizing setuptools-golang.

c_module

  • Demonstrates that you can mix go extensions with c extensions seamlessly.

go_sum

hello_lib

  • This module demonstrates importing go code within the project.

red

  • This module demonstrates importing external code (in this case ansi)

sum_pure_go

  • This module demonstrates it is possible to write an extension using only go files.
  • It's slightly cheaty in that one of the go files is entirely a C header.
  • You could instead do something similar to this example but it's much more difficult to support multiple versions of python.

About

Example extensions written for https://github.com/asottile/setuptools-golang

License:MIT License


Languages

Language:Go 36.3%Language:Python 33.8%Language:C 29.9%