Skip to main content

Cross Compile Python Extensions

Project description

Really it lets you cross build binary extensions.

You need to export PYTHONXCPREFIX and LDFLAGS, something like::
$ export PYTHONXCPREFIX=/opt/eldk/ppc_4xxFP/usr
$ export LDFLAGS="-L/opt/eldk/ppc_4xxFP/lib -L/opt/eldk/ppc_4xxFP/usr/lib"

It should pick up the correct include paths from the PYTHONXCPREFIX. To build
use::
$ python setup.py build -x

To make a cross compiled egg::
$ python setup.py build -x bdist_egg --plat-name linux-ppc --exclude-source-files

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Files for distutilscross, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size distutilscross-0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page