setup.py: add cached-property dependency
[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 test_requires = [
43 'nose',
44 # best to install pia from Libre-SOC:
45 # https://git.libre-soc.org/?p=power-instruction-analyzer.git
46 'power-instruction-analyzer'
47 ]
48
49 setup(
50 name='libresoc-openpower-isa',
51 version=version,
52 description="OpenPOWER ISA resources including a python-based simulator",
53 long_description=README + '\n\n',
54 long_description_content_type='text/markdown',
55 classifiers=[
56 "Topic :: Software Development",
57 "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
58 "Programming Language :: Python :: 3",
59 "Operating System :: OS Independent",
60 ],
61 keywords='nmigen libre-soc openpower simulator',
62 author='Luke Kenneth Casson Leighton',
63 author_email='lkcl@libre-soc.org',
64 url='http://git.libre-soc.org/?p=openpower-isa.git',
65 license='LGPLv3+',
66 packages=find_packages('src'),
67 package_dir={'': 'src'},
68 include_package_data=True,
69 zip_safe=False,
70 install_requires=install_requires,
71 tests_require=test_requires,
72 test_suite='nose.collector',
73 entry_points={
74 'console_scripts': [
75 'pywriter=openpower.decoder.pseudo.pywriter:pywriter',
76 'pyfnwriter=openpower.decoder.pseudo.pyfnwriter:pyfnwriter',
77 'sv_analysis=openpower.sv.sv_analysis:main',
78 'pypowersim=openpower.decoder.isa.pypowersim:run_simulation',
79 'pysvp64asm=openpower.sv.trans.svp64:asm_process'
80 ]
81 }
82 )