File: setup.py

package info (click to toggle)
gringo 5.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,128 kB
  • sloc: cpp: 210,867; ansic: 37,507; python: 11,271; yacc: 825; javascript: 627; sh: 368; xml: 364; makefile: 102
file content (45 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import site
import sys
from textwrap import dedent

from skbuild import setup

if not site.ENABLE_USER_SITE and "--user" in sys.argv[1:]:
    site.ENABLE_USER_SITE = True

setup(
    version="5.8.0",
    name="clingo",
    description="CFFI-based bindings to the clingo solver.",
    long_description=dedent(
        """\
        This package provides CFFI-based bindings to the clingo solver.

        Clingo is part of the [Potassco](https://potassco.org) project for *Answer Set Programming* (ASP).
        ASP offers a simple and powerful modeling language to describe combinatorial problems as *logic programs*.
        The *clingo* system then takes such a logic program and computes *answer sets* representing solutions to the given problem.
        To get an idea, check our [Getting Started](https://potassco.org/doc/start/) page and the [online version](https://potassco.org/clingo/run/) of clingo.

        Please check the the [API documentation](https://potassco.org/clingo/python-api/current/clingo/) on how to use this module.
        """
    ),
    long_description_content_type="text/markdown",
    author="Roland Kaminski",
    author_email="kaminski@cs.uni-potsdam.de",
    license="MIT",
    url="https://github.com/potassco/clingo",
    install_requires=["cffi"],
    cmake_args=[
        "-DCLINGO_MANAGE_RPATH=OFF",
        "-DCLINGO_BUILD_APPS=OFF",
        "-DCLINGO_BUILD_WITH_PYTHON=pip",
        "-DCLINGO_BUILD_WITH_LUA=OFF",
        "-DPYCLINGO_INSTALL_DIR=libpyclingo",
    ],
    packages=["clingo"],
    package_data={
        "clingo": ["py.typed", "import__clingo.lib", "clingo.h", "clingo.hh"]
    },
    package_dir={"": "libpyclingo"},
    python_requires=">=3.6",
)