Skip to main content

Introduction

PyCLP is a Python library to interface ECLiPSe Constraint Programmig System.

This module try to implement a pythonic interface to ECLiPSe (alias easy to use) by compromising on a little bit on performance.

Major differences from ECLiPSe standard interface libraries

The main difference compared to embedded interface provided by ECLiPSe system is the persistence of constructed terms after calling the pyclp.resume() (check 3.1.2 Building ECLiPSe terms ) function. In ECLiPSe standard interfaces compound terms are destroyed after resume while in PyCLP are stored in a reference that survive after resuming. PyCLP will destroy the refence only when python destroys the corrisponded python object (garbage collection). This consumes more memory but the now the python object and teh corrispondent ECLiPSe object have the same lifetime.

Moreover, in the definition of the API I tried to take advantage of a common propety of python and ECLiPSe: both are weak typed languages.

Installation

At this moment only Linux platform is supported.(tested on Ubuntu 12.04).

Linux

In this page it is explained how to compile and install from source in a Linux Platform

Requirments

Following packages shall be preinstalled before proceeding the installation of PyCLP

Download

Download source files from PyCLP sources

Compilation & Installation

Setup Enviromental variables for ECLiPSe:

ECLIPSEDIR enviromental variable shall be set to the folder where is located ECLiPSe system. This is required for compiling and using PyCLP.

LD_LIBRARY_PATH enviromental variable shall contains the path of folder that contains the ECLiPSe sharable library. E.g. <eclipsedir>/lib/i386_linux.

Install using usual method

sudo python setup.py install

Regression test

python test.py

Windows

Binary installation

Requirments

Following packages shall be preinstalled before proceeding the installation of PyCLP python3 setup.py register

Enviroment variables

Setup Enviromental variables for ECLiPSe:

ECLIPSEDIR enviromental variable shall be set to the folder where is located ECLiPSe system. This is required for compiling and using PyCLP.

PATH add in the path the folder where is stored the eclipse.dll file

Download & Install

Download msi installer from PyCLP sources

Installation from sources

Requirments

Following packages shall be preinstalled before proceeding the installation of PyCLP

Download

Download source files from PyCLP sources

Compilation & Installation

Setup Enviromental variables for ECLiPSe:

ECLIPSEDIR enviromental variable shall be set to the folder where is located ECLiPSe system. This is required for compiling and using PyCLP.

PATH add in the path the folder where is stored the eclipse.dll file

Install using usual method

python setup.py install

Regression test

python test.py

Download files

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

Source Distribution

PyCLP-0.4.tar.gz (96.2 kB view details)

Uploaded Source

File details

Details for the file PyCLP-0.4.tar.gz.

File metadata

  • Download URL: PyCLP-0.4.tar.gz
  • Upload date:
  • Size: 96.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyCLP-0.4.tar.gz
Algorithm Hash digest
SHA256 c787e9230daafa802a5054eb35c5702e41054bd5731dba2b6fe768f071d75370
MD5 81ff0b720af5b61b73323ba6858685dd
BLAKE2b-256 8ad91f5a112e4a7dfec8a7fd2bd82c821508a8a647834a5a1c6c1ae0bea8bd99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page