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

Extension to setuptools to run your package through nuitka to produce compiled, faster, obfuscated binary modules.

Project description

Extension to setuptools to run your package through nuitka to produce compiled, faster, obfuscated binary modules.

Nuitka [] is a python compiler with full language support and CPython compatibility.

It’s fully compatible with Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6.

You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

This module provides some hooks to add to your python packages to automatically run some/all of your code through nuitka when building a binary dist. This will typically be done with python bdist_wheel to create a wheel for distribution.

With nuitka-setuptools this wheel can be devoid of pure python and only contain compiled code which is not only faster (quote: Nuitka is more than 2 times faster than CPython) but has a relatively high level of code security.

Basic Usage:

import sys
from setuptools import setup

# Get the long description from the README file
with open(path.join(path.dirname(__file__), 'README.rst'), 'r') as f:
    long_description =

packages = ['mod', 'pkg']

if any('bdist' in arg for arg in sys.argv):
    from nuitka_setuptools import Nuitka, Compile

    build_settings = dict(
        # Compile module
        cmdclass={'build_ext': Nuitka},
    build_settings = {}

    description='Extension to setuptools to run your package through nuitka to '
                'produce compiled, faster, obfuscated binary modules.',
    author='Andrew Leech',
    cmdclass={'build_ext': Nuitka},

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
nuitka_setuptools-2.0-py2.py3-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Dec 14, 2017
nuitka_setuptools-2.0.tar.gz (9.0 kB) Copy SHA256 hash SHA256 Source None Dec 14, 2017

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