-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
43 lines (38 loc) · 1.35 KB
/
setup.py
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
import setuptools
import subprocess
import sys
VERSION = "4.5.1"
CLINGO_SRC = 'clingo-' + VERSION + '-source'
def readme():
with open('pip-readme.rst') as f:
return f.read()
if "--compile" in sys.argv:
print subprocess.check_output(
["scons", "--build=release", "pyclingo"],
cwd=CLINGO_SRC)
setuptools.setup(
name="gringo",
version=VERSION,
description="Answer Set Programming for Python",
long_description=readme(),
url="http://potassco.sourceforge.net/gringo.html",
maintainer="Alexis Lee",
maintainer_email="python-gringo@lxsli.co.uk",
license="GPL v3+",
data_files=[('lib/python2.7/site-packages',
[CLINGO_SRC + '/build/release/python/gringo.so']),
('lib/python2.7/site-packages/gringo-' + VERSION,
[(CLINGO_SRC + "/" + f) for f in
['CHANGES', 'COPYING', 'INSTALL', 'README']])],
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: C++",
"Intended Audience :: Developers",
"License :: OSI Approved :: " +
"GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='answer set programming asp gringo clasp clingo',
zip_safe=False,
)