1 from setuptools
import setup
, find_packages
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()
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"
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
27 # NOT ok to install using pip3 https://git.libre-soc.org/?p=nmigen.git
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
38 # git url needed for having `pip3 install -e .` install from libre-soc git
39 'cached-property@'+cprop
,
42 # git url needed for having `setup.py develop` install from libre-soc git
49 # best to install pia from Libre-SOC:
50 # https://git.libre-soc.org/?p=power-instruction-analyzer.git
51 'power-instruction-analyzer'
55 name
='libresoc-openpower-isa',
57 description
="OpenPOWER ISA resources including a python-based simulator",
58 long_description
=README
+ '\n\n',
59 long_description_content_type
='text/markdown',
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",
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',
71 packages
=find_packages('src'),
72 package_dir
={'': 'src'},
73 include_package_data
=True,
75 install_requires
=install_requires
,
76 dependency_links
=dependency_links
,
77 tests_require
=test_requires
,
78 test_suite
='nose.collector',
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.insndb.asm:main',
86 'pysvp64dis=openpower.insndb.dis:main'