Giter Club home page Giter Club logo

python-gringo's Introduction

python-gringo

Download, activate the virtualenv of your choice, then:

python2 setup.py sdist
pip2 install dist/gringo-*.tar.gz

This solution includes the whole clingo source [1]. It should be fairly simple to swap in a new version, just be sure to set up build/release.py correctly.

There is an exemple of release.py that compile clingo with multithread (TBB is downloadable manually [2] if not in your repository) and python2.7 support:

CXX = 'g++'
CXXFLAGS = ['-std=c++11', '-O3', '-Wall']
CPPPATH = ['/usr/include/python2.7', '/path/to/tbb/tbb43_20150316oss/include']
# path depends of your system.
CPPDEFINES = {'NDEBUG': 1}
LIBS = ['dl']
LIBPATH = ['/path/to/tbb/tbb43_20150316oss/lib/intel64/gcc4.4']
LINKFLAGS = ['-std=c++11', '-O3']
RPATH = []
AR = 'ar'
ARFLAGS = ['rc']
RANLIB = 'ranlib'
BISON = 'bison'
RE2C = 're2c'
WITH_PYTHON = 'python2.7'
WITH_LUA = 'auto'
WITH_TBB = 'tbb'
WITH_CPPUNIT = 'auto'
[1]http://sourceforge.net/projects/potassco/files/clingo/4.5.1/
[2]http://www.threadingbuildingblocks.org/

python-gringo's People

Contributors

aluriak avatar elzibubble avatar

Stargazers

Erik J. Groeneveld avatar  avatar Yijun Yuan avatar  avatar Chenyang Huang avatar Anthony Lowhur avatar TENSORTALK avatar  avatar Pantelis Koukousoulas avatar

Watchers

 avatar James Cloos avatar Gökhan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.