Skip to main content

Bindings for Little CMS

Project description

Little CMS Python Bindings

`SWIG <>`_ generated Python bindings for v2.7 of `Little CMS <>`_.

This distribution contains the necessary C source files from littlecms in the c_sources directory.


The distributed product is best installed by users using pip:
pip install littlecms

Building in Development Mode

Building the product during further development is best done in the setuptools
development mode. From the base of the repo, use this command:
setup develop --install-dir=<dir>

where <dir> is a location on your PYTHONPATH. This requires that you have both
setuptools and the appropriate C build tools available for the target version of
Python [On Windows, that's Visual Studio 2015 for Python 3.5 and Visual Studio 2010
for Python 3.3-3.4].

Installing setuptools

Follow the instructions at The
recommended method is to download and run it using the target Python
NB. This step isn't required for Python 3.4+ because setuptools are pre-installed
in the Python distribution.

Generating the SWIG Wrapper

This package contains swig/littlecms_wrap.cpp and littlecms/, which
form a pre-generated Python3 SWIG wrapper for the littlecms library.
If you need to regenerate the wrapper, the SWIG source files are also included.
This is the command line used on Windows:

swig -python -py3 -Ic_sources/include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include" -outdir littlecms -o swig/littlecms_wrap.cpp swig/littlecms.i

This command requires that SWIG is installed, and that the VS2015 header files are
available in the given location.
NB. This command is for Python 3.5+ which requires VS2015 (includes Visual C v14).
Python 3.3-3.4 requires VS2010, so change this command to use headers from
"Microsoft Visual Studio 10.0" instead.
Actually, for the purpose of this command only, it doesn't make any difference
which headers are used for either version of Python.

Project details

Download files

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

Files for littlecms, version 0.1b1
Filename, size File type Python version Upload date Hashes
Filename, size littlecms-0.1b1-cp35-cp35m-win_amd64.whl (424.1 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size (432.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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