[gecode-users] [ANN] gecode/python v0.23

Denys Duchier denys.duchier at univ-orleans.fr
Thu Oct 27 15:46:14 CEST 2011


I am pleased to announce release 0.23 of gecode-python, the simplified
gecode bindings for python.

WHAT'S NEW:

- support for writing search engines in python:

  + s.status() returns the status of space s
  + s.choice() returns a Choice object
  + s.commit(Choice, int) commits s to an alternative of the Choice
  + if c is a Choice, c.alternatives() is the number of alternatives
  + s.constrain(sol) constrains s to be better than solution sol
    according to the stated optimization criterion

INSTALL:

- from pypi using easy_install (provided by setuptools):

        sudo -E easy_install gecode-python
  or    easy_install gecode-python --prefix ~

  if you are upgrading a previous install:

        sudo -E easy_install -U gecode-python
  or    easy_install -U gecode-python --prefix ~

- from pypi using the tarball:

        tar zxf gecode-python-0.17.tar.gz
        cd gecode-python-0.17
        sudo -E python setup.py install
  or    python setup.py install --prefix ~

- using the launchpad branch:

        bzr branch lp:gecode-python
        cd gecode-python
        sudo -E python setup.py install
  or    python setup.py install --prefix ~

if you are installing using "--prefix ~" I recommend that:
1. you create directory ~/.local if it does not already exist
2. you create a symbolic link:
        ~/.local/lib   -> ~/lib
   or   ~/.local/lib64 -> ~/lib64
   depending on whether you have a ~/lib or a ~/lib64 directory in your
   home after install.
this will allow python to find your locally installed packages without
requiring you to fiddle with environment variable PYTHONPATH.

Cheers,

--Denys



More information about the users mailing list