add very very very basic write-out of instruction log
[openpower-isa.git] / setup.py
1 from setuptools import setup, find_packages
2 import sys
3 import os
4
5 here = os.path.abspath(os.path.dirname(__file__))
6 README = open(os.path.join(here, 'README.md')).read()
7 NEWS = open(os.path.join(here, 'NEWS.txt')).read()
8
9 version = '0.0.3'
10
11 # the only reason this is added is because it's become a part of python 3.9.
12 # the project standard is python 3.7 however in future that will be updated.
13 # for now, cached_property is RELUCTANTLY added but a *copy* is added so
14 # that the generation of HDL is not critically dependent on random crap
15 # off the internet. you're spending USD 16 *MILLION* on masks, you better
16 # be absolutely paranoid-level certain you know where every piece of the
17 # chain creating the HDL comes from.
18 cprop = "git+https://git.libre-soc.org/git/cached-property.git@1.5.2" \
19 "#egg=cached-property-1.5.2"
20
21 # using pip3 for ongoing development is a royal pain. seriously not
22 # recommended. therefore a number of these dependencies have been
23 # commented out. *they are still required* - they will need installing
24 # manually.
25
26 install_requires = [
27 # NOT ok to install using pip3 https://git.libre-soc.org/?p=nmigen.git
28 'nmigen>=0.0,<=0.5',
29 # can be obtained with pip3, best done manually
30 # https://git.libre-soc.org/?p=nmutil.git
31 'libresoc-nmutil>=0.0.0,<=1.0',
32 # these should be fine
33 'pygdbmi==0.9.0.3', # gdb machine interface, requires older version (sigh)
34 'ply', # python lex yacc. very cool
35 'astor', # python AST manipulation
36 'cffi', # LuaJIT-style C FFI for Python
37
38 # git url needed for having `pip3 install -e .` install from libre-soc git
39 'cached-property@'+cprop,
40 ]
41
42 # git url needed for having `setup.py develop` install from libre-soc git
43 dependency_links = [
44 cprop,
45 ]
46
47 test_requires = [
48 'nose',
49 # best to install pia from Libre-SOC:
50 # https://git.libre-soc.org/?p=power-instruction-analyzer.git
51 'power-instruction-analyzer'
52 ]
53
54 setup(
55 name='libresoc-openpower-isa',
56 version=version,
57 description="OpenPOWER ISA resources including a python-based simulator",
58 long_description=README + '\n\n',
59 long_description_content_type='text/markdown',
60 classifiers=[
61 "Topic :: Software Development",
62 "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
63 "Programming Language :: Python :: 3",
64 "Operating System :: OS Independent",
65 ],
66 keywords='nmigen libre-soc openpower simulator',
67 author='Luke Kenneth Casson Leighton',
68 author_email='lkcl@libre-soc.org',
69 url='http://git.libre-soc.org/?p=openpower-isa.git',
70 license='LGPLv3+',
71 packages=find_packages('src'),
72 package_dir={'': 'src'},
73 include_package_data=True,
74 zip_safe=False,
75 install_requires=install_requires,
76 dependency_links=dependency_links,
77 tests_require=test_requires,
78 test_suite='nose.collector',
79 entry_points={
80 'console_scripts': [
81 'pywriter=openpower.decoder.pseudo.pywriter:pywriter',
82 'pyfnwriter=openpower.decoder.pseudo.pyfnwriter:pyfnwriter',
83 'sv_analysis=openpower.sv.sv_analysis:main',
84 'pypowersim=openpower.decoder.isa.pypowersim:run_simulation',
85 'pysvp64asm=openpower.sv.trans.svp64:asm_process',
86 'pysvp64dis=openpower.sv.trans.pysvp64dis:main'
87 ]
88 }
89 )