-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
56 lines (47 loc) · 1.83 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
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
from setuptools import setup
from distutils.extension import Extension
from datetime import datetime
PICOSAT_VERSION='965'
PICOSAT_DIR='picosat-%s' % PICOSAT_VERSION
PYPICOSAT_MINOR_VERSION='%s' % datetime.utcnow().strftime("%y%m%d%H%M")
# Major number is Picosat Version, minor number creation date of the bindings
PYPICOSAT_VERSION='%s.%s' % (PICOSAT_VERSION, PYPICOSAT_MINOR_VERSION)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# Build from SWIG definition
picosat_ext = Extension('_picosat',
[os.path.join(BASE_DIR, 'picosat_python.i')],
swig_opts=['-I%s' % os.path.join(BASE_DIR, PICOSAT_DIR)],
include_dirs=[PICOSAT_DIR],
library_dirs=[PICOSAT_DIR],
libraries=['picosat'],
language='c',
)
short_description="Picosat SAT-Solver Wrapper"
long_description=\
"""
==========================
Picosat SAT-Solver Wrapper
==========================
pyPicosat provides a basic wrapping around the efficient Picosat SAT-Solver.
To build this wrapper you need SWIG to be installed.
Picosat is developed by Armin Biere, for more information: http://fmv.jku.at/picosat/
"""
setup(name='pyPicosat',
version=PYPICOSAT_VERSION,
author='PySMT Team',
author_email='info@pysmt.org',
url='https://github.com/pysmt/pyPicoSAT/',
license='BSD',
description=short_description,
long_description=long_description,
ext_modules=[picosat_ext],
py_modules=['picosat'],
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)