Skip to content
Snippets Groups Projects
Commit 66ce4c6261df authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

make python-constraint optional

parent 4811155ef54d
No related branches found
No related tags found
No related merge requests found
"""Analyze of the RQL syntax tree to get possible types for RQL variables. """Analyze of the RQL syntax tree to get possible types for RQL variables.
:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: General Public License version 2 - http://www.gnu.org/licenses :license: General Public License version 2 - http://www.gnu.org/licenses
""" """
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
import warnings import warnings
warnings.filterwarnings(action='ignore', module='logilab.constraint.propagation') warnings.filterwarnings(action='ignore', module='logilab.constraint.propagation')
from logilab.constraint import Repository, Solver, fd
from rql import TypeResolverException, nodes from rql import TypeResolverException, nodes
from pprint import pprint from pprint import pprint
...@@ -22,6 +20,8 @@ ...@@ -22,6 +20,8 @@
import rql_solve import rql_solve
except ImportError: except ImportError:
rql_solve = None rql_solve = None
from logilab.constraint import Repository, Solver, fd
# Gecode solver not available # Gecode solver not available
#rql_solve = None # uncomment to force using logilab-constraint #rql_solve = None # uncomment to force using logilab-constraint
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
def end_domain_definition(self): def end_domain_definition(self):
pass pass
def get_domains(self): def get_domains(self):
return self.domains return self.domains
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
Package: python-rql Package: python-rql
Architecture: any Architecture: any
XB-Python-Version: ${python:Versions} XB-Python-Version: ${python:Versions}
Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, python-logilab-common (>= 0.35.3-1), python-constraint (>= 0.4.0-1), yapps2-runtime Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, python-logilab-common (>= 0.35.3-1), yapps2-runtime
Provides: ${python:Provides} Provides: ${python:Provides}
Description: relationship query language (RQL) utilities Description: relationship query language (RQL) utilities
A library providing the base utilities to handle RQL queries, A library providing the base utilities to handle RQL queries,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment