Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

An add-on for setuptools to simplify building executables and static libraries

Project description

Distutils/Setuptools provides a fantastic cross platform framework for building python packages, including binary extensions using your platforms standard c/c++ compiler.

Why should it be limited only to use on python pyd extensions however, there’s nothing to stop it being used for compiling anything with said comiler, such as executables and static libraries.

Well it turns out all the functionality is already there, it just isn’t really exposed to the end user very easily. This is easily rectified however:

from setuptools import setup
from ext_targets import build_ext, StaticLib, Executable

    name='binaries!',  # This isn't actually used in the built targets
    cmdclass={'build_ext': build_ext},
    ext_modules=ext_modules = [
            sources=['lib.c', 'required.c'],
            sources=['source.c', 'extra.cpp'],

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
setuptools_bin_targets-1.0.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Oct 26, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page