Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Little CMS Python Bindings
==========================

`SWIG <http://swig.org>`_ generated Python bindings for v2.7 of `Little CMS <http://www.littlecms.com>`_.

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


Installing
==========

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 https://pypi.python.org/pypi/setuptools. The
recommended method is to download ez_setup.py and run it using the target Python
environment.
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/littlecms.py, 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.


Currently Unsupported LittleCMS Functions
=========================================
It is believed that support for the LittleCMS API is nearly complete with the
exception of these functions. They are unsupported because the types of the
named params aren't yet supported; they are mostly arrays:
cmsGetHeaderCreationDateTime - struct tm *Dest
cmsGetSupportedIntents - char** Descriptions
cmsCreateExtendedTransform - cmsBool BPC[]
cmsIT8EnumProperties - char ***PropertyNames
cmsIT8EnumPropertyMulti - char ***SubpropertyNames
cmsIT8EnumDataFormat - char ***SampleNames
cmsPipelineUnlinkStage - cmsStage **mpe (Does work with None value for pointer)
cmsStageAllocCLutFloat - cmsFloat32Number *Table (Does work with None value for pointer)
cmsStageSampleCLutFloat - cmsSAMPLERFLOAT (The uint16 sampler is supported)

Release files for littlecms 0.1b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for littlecms 0.1b3
File Size Uploaded
littlecms-0.1b3.zip 435.6 kB Details

Release files / littlecms-0.1b3.zip

Download URL littlecms-0.1b3.zip
Size 435.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4ed3a3f2c3d980c7fcc286464c9603f08b02b4a13ca93f00d755064f57d75956
BLAKE2b-256 checksum
How to use checksums
baa481ae9c604b09e7e2b23ee155cfe8d8125ec7fa6317a8203c680b672e81a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1b3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page