Skip to content

Commit 9b9705e

Browse files
committed
Updated setup.py to create links to executables pysmt, pysmt-shell and pysmt-install
1 parent b665035 commit 9b9705e

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

MANIFEST.in

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
include LICENSE.txt, README.rst
2-
recursive-include docs *.txt
3-
include example.py
1+
include LICENSE README.rst
2+
recursive-include docs *.rst

setup.py

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
from distutils.core import setup
1+
#from distutils.core import setup
2+
from setuptools import setup, find_packages
23

34
setup(
45
name='PySMT',
5-
version='0.2.2',
6+
version='0.2.3.dev',
67
author='PySMT Team',
7-
author_email='',
8-
packages=['pysmt', 'pysmt.smtlib', 'pysmt.solvers',
9-
'pysmt.utils', 'pysmt.walkers',
10-
'pysmt.test', 'pysmt.test.smtlib'],
8+
author_email='info@pysmt.org',
9+
packages = find_packages(),
10+
include_package_data = True,
11+
# packages=['pysmt', 'pysmt.smtlib', 'pysmt.solvers',
12+
# 'pysmt.utils', 'pysmt.walkers',
13+
# 'pysmt.test', 'pysmt.test.smtlib'],
1114
url='http://www.pysmt.org',
12-
license='LICENSE',
15+
license='APACHE',
1316
description='A library for SMT Formulae manipulation and solving',
1417
long_description=open('README.rst').read(),
15-
install_requires=[ ],
18+
entry_points={
19+
'console_scripts': [
20+
'pysmt = shell:main',
21+
'pysmt-shell = shell:main_interactive',
22+
'pysmt-install = install:main',
23+
],
24+
},
1625
)

shell.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,14 @@ def main(self):
130130
input_stream = open(self.args.file, "r")
131131
self.smtlib_solver(input_stream)
132132

133+
def main_interactive():
134+
shell = PysmtShell(sys.argv[1:])
135+
shell.interactive()
133136

134-
if __name__ == "__main__":
137+
def main():
135138
shell = PysmtShell(sys.argv[1:])
136139
shell.main()
140+
141+
142+
if __name__ == "__main__":
143+
main()

0 commit comments

Comments
 (0)