PySMT 0.9.7.dev485__py2.py3-none-any.whl → 0.9.7.dev487__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pysmt/__init__.py +1 -1
- pysmt/cmd/installers/base.py +4 -3
- pysmt/cmd/installers/bdd.py +2 -2
- pysmt/cmd/installers/btor.py +1 -1
- pysmt/cmd/installers/cvcfive.py +1 -1
- pysmt/cmd/installers/msat.py +1 -2
- pysmt/cmd/installers/yices.py +3 -3
- pysmt/cmd/installers/z3.py +1 -1
- pysmt/test/test_installers.py +22 -0
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/METADATA +3 -1
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/RECORD +16 -15
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/WHEEL +0 -0
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/entry_points.txt +0 -0
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/licenses/LICENSE +0 -0
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/licenses/NOTICE +0 -0
- {pysmt-0.9.7.dev485.dist-info → pysmt-0.9.7.dev487.dist-info}/top_level.txt +0 -0
pysmt/__init__.py
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
from typing import Tuple, Union
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
VERSION: Union[Tuple[int, int, int], Tuple[int, int, int, str, int]] = (0, 9, 7, "dev",
|
|
22
|
+
VERSION: Union[Tuple[int, int, int], Tuple[int, int, int, str, int]] = (0, 9, 7, "dev", 487)
|
|
23
23
|
|
|
24
24
|
# Try to provide human-readable version of latest commit for dev versions
|
|
25
25
|
# E.g. v0.5.1-4-g49a49f2-wip
|
pysmt/cmd/installers/base.py
CHANGED
|
@@ -197,8 +197,9 @@ class SolverInstaller(object):
|
|
|
197
197
|
if sys.executable:
|
|
198
198
|
interpreter = sys.executable
|
|
199
199
|
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
if isinstance(script, str):
|
|
201
|
+
script = script.split()
|
|
202
|
+
cmd = [interpreter] + script
|
|
202
203
|
return SolverInstaller.run(cmd, directory=directory,
|
|
203
204
|
env_variables=env_variables,
|
|
204
205
|
get_output=get_output)
|
|
@@ -296,7 +297,7 @@ class SolverInstaller(object):
|
|
|
296
297
|
env[k] = bindings_dir
|
|
297
298
|
|
|
298
299
|
try:
|
|
299
|
-
output = self.run_python(
|
|
300
|
+
output = self.run_python([check_version_script, package],
|
|
300
301
|
env_variables=env,
|
|
301
302
|
get_output=True)
|
|
302
303
|
output = output.strip()
|
pysmt/cmd/installers/bdd.py
CHANGED
|
@@ -41,8 +41,8 @@ class CuddInstaller(SolverInstaller):
|
|
|
41
41
|
|
|
42
42
|
import sysconfig
|
|
43
43
|
PYTHON_INCLUDE_DIR = sysconfig.get_path("include")
|
|
44
|
-
SolverInstaller.run("make -C
|
|
45
|
-
|
|
44
|
+
SolverInstaller.run(["make", "-C", self.extract_path, "-f", makefile,
|
|
45
|
+
"PYTHON_INCL=-I%s" % PYTHON_INCLUDE_DIR])
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
def move(self):
|
pysmt/cmd/installers/btor.py
CHANGED
|
@@ -79,7 +79,7 @@ class BtorInstaller(SolverInstaller):
|
|
|
79
79
|
f.write(CYTHON_PATCH.encode())
|
|
80
80
|
f.flush()
|
|
81
81
|
f.seek(0)
|
|
82
|
-
SolverInstaller.run("patch src/api/python/pyboolector.pyx -i
|
|
82
|
+
SolverInstaller.run(["patch", "src/api/python/pyboolector.pyx", "-i", f.name],
|
|
83
83
|
directory=self.extract_path)
|
|
84
84
|
|
|
85
85
|
# Build lingeling
|
pysmt/cmd/installers/cvcfive.py
CHANGED
|
@@ -35,7 +35,7 @@ class CVC5Installer(SolverInstaller):
|
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
def compile(self):
|
|
38
|
-
SolverInstaller.run_python("-m pip install --upgrade --target
|
|
38
|
+
SolverInstaller.run_python(["-m", "pip", "install", "--upgrade", "--target", self.bindings_dir, "cvc5==%s" % self.solver_version])
|
|
39
39
|
|
|
40
40
|
def get_installed_version(self):
|
|
41
41
|
return self.get_installed_version_script(self.bindings_dir, "cvc5")
|
pysmt/cmd/installers/msat.py
CHANGED
|
@@ -114,8 +114,7 @@ class MSatInstaller(SolverInstaller):
|
|
|
114
114
|
soname = glob.glob(self.bindings_dir + "/_mathsat*.so")[0]
|
|
115
115
|
old_path = "/Users/alb/src/release/build/libmathsat.dylib"
|
|
116
116
|
new_path = "%s/libmathsat.dylib" % self.bindings_dir
|
|
117
|
-
SolverInstaller.run("install_name_tool -change
|
|
118
|
-
(old_path, new_path, soname))
|
|
117
|
+
SolverInstaller.run(["install_name_tool", "-change", old_path, new_path, soname])
|
|
119
118
|
|
|
120
119
|
|
|
121
120
|
def get_installed_version(self):
|
pysmt/cmd/installers/yices.py
CHANGED
|
@@ -44,15 +44,15 @@ class YicesInstaller(SolverInstaller):
|
|
|
44
44
|
|
|
45
45
|
SolverInstaller.run("autoconf", directory=self.extract_path)
|
|
46
46
|
|
|
47
|
-
SolverInstaller.run("bash configure --prefix
|
|
47
|
+
SolverInstaller.run(["bash", "configure", "--prefix", self.yices_path],
|
|
48
48
|
directory=self.extract_path)
|
|
49
49
|
SolverInstaller.run("make", directory=self.extract_path)
|
|
50
50
|
SolverInstaller.run("make install", directory=self.extract_path)
|
|
51
51
|
|
|
52
52
|
if self.yices_api_version is None:
|
|
53
|
-
SolverInstaller.run_python("-m pip install --upgrade --target
|
|
53
|
+
SolverInstaller.run_python(["-m", "pip", "install", "--upgrade", "--target", self.bindings_dir, "yices"])
|
|
54
54
|
else:
|
|
55
|
-
SolverInstaller.run_python("-m pip install --upgrade --target
|
|
55
|
+
SolverInstaller.run_python(["-m", "pip", "install", "--upgrade", "--target", self.bindings_dir, "yices==%s" % self.yices_api_version])
|
|
56
56
|
|
|
57
57
|
libdir = os.path.join(self.yices_path, "lib")
|
|
58
58
|
yices_api_file = os.path.join(self.bindings_dir, "yices_api.py")
|
pysmt/cmd/installers/z3.py
CHANGED
|
@@ -32,7 +32,7 @@ class Z3Installer(SolverInstaller):
|
|
|
32
32
|
mirror_link=mirror_link)
|
|
33
33
|
|
|
34
34
|
def compile(self):
|
|
35
|
-
SolverInstaller.run_python("-m pip install --upgrade --target
|
|
35
|
+
SolverInstaller.run_python(["-m", "pip", "install", "--upgrade", "--target", self.bindings_dir, "z3-solver==%s" % self.solver_version])
|
|
36
36
|
|
|
37
37
|
def get_installed_version(self):
|
|
38
38
|
return self.get_installed_version_script(self.bindings_dir, "z3")
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import tempfile
|
|
3
|
+
|
|
4
|
+
from pysmt.cmd.installers.base import SolverInstaller
|
|
5
|
+
from pysmt.test import TestCase, main
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TestInstallers(TestCase):
|
|
9
|
+
|
|
10
|
+
def test_run_python_path_with_space(self):
|
|
11
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
12
|
+
script = os.path.join(tmp, "with space", "echo.py")
|
|
13
|
+
os.makedirs(os.path.dirname(script))
|
|
14
|
+
with open(script, "w") as f:
|
|
15
|
+
f.write("import sys; print(sys.argv[1])")
|
|
16
|
+
arg = os.path.join(tmp, "another dir")
|
|
17
|
+
out = SolverInstaller.run_python([script, arg], get_output=True)
|
|
18
|
+
self.assertEqual(out.strip(), arg)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
if __name__ == "__main__":
|
|
22
|
+
main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PySMT
|
|
3
|
-
Version: 0.9.7.
|
|
3
|
+
Version: 0.9.7.dev487
|
|
4
4
|
Summary: A solver-agnostic library for SMT Formulae manipulation and solving
|
|
5
5
|
Home-page: http://www.pysmt.org
|
|
6
6
|
Author: PySMT Team
|
|
@@ -8,12 +8,14 @@ Author-email: info@pysmt.org
|
|
|
8
8
|
License: APACHE
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
License-File: NOTICE
|
|
11
|
+
Requires-Dist: setuptools
|
|
11
12
|
Dynamic: author
|
|
12
13
|
Dynamic: author-email
|
|
13
14
|
Dynamic: description
|
|
14
15
|
Dynamic: home-page
|
|
15
16
|
Dynamic: license
|
|
16
17
|
Dynamic: license-file
|
|
18
|
+
Dynamic: requires-dist
|
|
17
19
|
Dynamic: summary
|
|
18
20
|
|
|
19
21
|
============================================================
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pysmt/__init__.py,sha256
|
|
1
|
+
pysmt/__init__.py,sha256=s8hAfy84GGJ9baxeMVgXEMlSq1pYibj1849Xa3O5Y2c,1701
|
|
2
2
|
pysmt/__main__.py,sha256=rR-MV1QtLYqtVoJyY3m5B5Iz-lua0-5o6YSB0W4lKy8,1085
|
|
3
3
|
pysmt/configuration.py,sha256=Iq_46QZ9z_jpBMk76euJWTqGEwHad2qyiEDPix5sXsA,4538
|
|
4
4
|
pysmt/constants.py,sha256=pulb6NvROY_X8BePeyyX8T9MJLB79HZ_1FUYSlZ7Jfg,5769
|
|
@@ -25,16 +25,16 @@ pysmt/cmd/check_version.py,sha256=DCS6pHVuQm9J_vfSSDDGxtvrV6P1mEhQK-IUjacDh3s,28
|
|
|
25
25
|
pysmt/cmd/install.py,sha256=-PT8N0nbl9fkd0LLQ1LMdHy1szzsGVimGdmuogH3xcc,10467
|
|
26
26
|
pysmt/cmd/shell.py,sha256=1H5NJ9St879-U3EDizq_5l34vKPUJr-wi3MyBy164Sc,6594
|
|
27
27
|
pysmt/cmd/installers/__init__.py,sha256=fEAD4FUh0Hjv7u-o9dc5nYMjzPUAzR8bWo8DSgUQjq4,1438
|
|
28
|
-
pysmt/cmd/installers/base.py,sha256=
|
|
29
|
-
pysmt/cmd/installers/bdd.py,sha256=
|
|
30
|
-
pysmt/cmd/installers/btor.py,sha256=
|
|
31
|
-
pysmt/cmd/installers/cvcfive.py,sha256=
|
|
28
|
+
pysmt/cmd/installers/base.py,sha256=CKs_qq64_TE0a244L4TjWGTau9MQqfuzn2IMO1XXAe8,13168
|
|
29
|
+
pysmt/cmd/installers/bdd.py,sha256=ohk26CcuPlW4wwJCtPMURRpwYbvg6s-F_qjcGzgCTjI,2194
|
|
30
|
+
pysmt/cmd/installers/btor.py,sha256=wHTyJzUVEmvSCjmZqjftRtQGeOxKc4S2AuJqdWEwfX4,4999
|
|
31
|
+
pysmt/cmd/installers/cvcfive.py,sha256=k2zJGIlFDrx_9yeqKfdHph6HTmTr3OxYjUpqTy_44yA,1472
|
|
32
32
|
pysmt/cmd/installers/cvcfour.py,sha256=uBZkKIX4gZEMfjrhrparUSDydMcvGIGZM2Y8JYD0GzE,3916
|
|
33
|
-
pysmt/cmd/installers/msat.py,sha256=
|
|
33
|
+
pysmt/cmd/installers/msat.py,sha256=cL2xMn0UOrV7rAlI2Tsx-MqEiurpM1LJjZYL8utQT4I,5508
|
|
34
34
|
pysmt/cmd/installers/optimsat.py,sha256=E9W0mKtMdV_LsaywEM-baVzj_T70sNclqiFucqzWYCU,4359
|
|
35
35
|
pysmt/cmd/installers/pico.py,sha256=U4sXr1oj4BJJpO5H7vB8WqJ6OEPazpYkmmXP1XWhvys,3027
|
|
36
|
-
pysmt/cmd/installers/yices.py,sha256=
|
|
37
|
-
pysmt/cmd/installers/z3.py,sha256=
|
|
36
|
+
pysmt/cmd/installers/yices.py,sha256=smnsD6LVeuAV2EkvUFoKCQK_JSHnes4g4r1bxTRurOw,3039
|
|
37
|
+
pysmt/cmd/installers/z3.py,sha256=28PtWI27tvoQsfwe97wDb9-0RmdQA2bvJ-wAcy7P51E,1398
|
|
38
38
|
pysmt/optimization/__init__.py,sha256=JXBHtcb4Lv-Sb8whc9JuGbRH2EBLWwtLUh3PL9HhNE8,650
|
|
39
39
|
pysmt/optimization/goal.py,sha256=b6--z8gi-vyDjYSVNYIy9fiYhLXz51EPv5jxP64H_oI,10128
|
|
40
40
|
pysmt/optimization/msat.py,sha256=yj5-vqxQFJnK3zjVlYpxemZ2BWG-6IrCTDKvjl94xNY,937
|
|
@@ -89,6 +89,7 @@ pysmt/test/test_euf.py,sha256=B0VRx1NwfKZZIG5Fc6gYPj7G6gNWMzYJvgbh-2q2E28,3455
|
|
|
89
89
|
pysmt/test/test_formula.py,sha256=nd550r7dBRHvoNKedCCdKfmV0WD4oMfjZekfAtk7GSg,40493
|
|
90
90
|
pysmt/test/test_hr_parsing.py,sha256=bi-iTu7y1C7diMcWsQ7EI40MipDbzTKbMGPnLWX85A8,3118
|
|
91
91
|
pysmt/test/test_imports.py,sha256=f41EUBrlDItgQ_6SPhWW8-tuwMrdMFXHJzaxrHHB43Q,1583
|
|
92
|
+
pysmt/test/test_installers.py,sha256=0eaaHk-DhdR47jCL-qT0Jb80iKrar8TWzTWhfOfByuU,679
|
|
92
93
|
pysmt/test/test_int.py,sha256=dk72Q6viqRUs9XiPB40n6RrwiqsV6GbbKuSlYaQMU9k,1980
|
|
93
94
|
pysmt/test/test_interpolation.py,sha256=WTodZtnxH5slIvUWbHbjjnI2o0naXgZwZawTGhh3E0o,3941
|
|
94
95
|
pysmt/test/test_lira.py,sha256=o8z7Bcb9zH2ptC7oYTueAJB05a-SINh2a__UNUUP610,5006
|
|
@@ -144,10 +145,10 @@ pysmt/walkers/dag.py,sha256=hw9qUfadQTpihX685YQobfxKv9XA84ffiA8XRMUQEfU,5694
|
|
|
144
145
|
pysmt/walkers/generic.py,sha256=2oMr_MDr7FswSlyx2ulbJ9ke5FsTCKABURnCsMeg4fc,5093
|
|
145
146
|
pysmt/walkers/identitydag.py,sha256=EAxSneEW91Z8GphlkbMPsPdlac7_FDcVj-_6_aunU2s,10902
|
|
146
147
|
pysmt/walkers/tree.py,sha256=1vquhaChRMSG_pvbz16wqKOFnsQAkzLvjh_xbB3dg5c,2730
|
|
147
|
-
pysmt-0.9.7.
|
|
148
|
-
pysmt-0.9.7.
|
|
149
|
-
pysmt-0.9.7.
|
|
150
|
-
pysmt-0.9.7.
|
|
151
|
-
pysmt-0.9.7.
|
|
152
|
-
pysmt-0.9.7.
|
|
153
|
-
pysmt-0.9.7.
|
|
148
|
+
pysmt-0.9.7.dev487.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
149
|
+
pysmt-0.9.7.dev487.dist-info/licenses/NOTICE,sha256=Ns-Jsa6nbqZUiTEEAM6HqioSZIxQ2RCJzxoBlWQaUfc,601
|
|
150
|
+
pysmt-0.9.7.dev487.dist-info/METADATA,sha256=xuNOAUIywAUwnj4-gFdr_fyGNTcsasx8yM5dwXTwwqo,1823
|
|
151
|
+
pysmt-0.9.7.dev487.dist-info/WHEEL,sha256=4YBfCYNH4wlLpv3pzq1hbEuIlXA4WJabKLFurZ7eTL0,109
|
|
152
|
+
pysmt-0.9.7.dev487.dist-info/entry_points.txt,sha256=gDc1XM0xTJJMDGC_nXd0kfbX-Omjke9Dn9F3awMLYIU,57
|
|
153
|
+
pysmt-0.9.7.dev487.dist-info/top_level.txt,sha256=NwHQbpTaZMEvjIUdC0bvvj-WUyULe-nt-opK3YQNRMk,6
|
|
154
|
+
pysmt-0.9.7.dev487.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|