X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=setup.py;h=37d637685d42b41f91eae6be74ce883b41a5163b;hb=4dab79e8382f398de604415f7ca8e6d0fd7ee78a;hp=0e871cee389e06ad705247832571656f5f060e66;hpb=2f3b0800c44e54fd878d1bccbc1be9a13b3462e9;p=openpower-isa.git diff --git a/setup.py b/setup.py index 0e871cee..37d63768 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,16 @@ NEWS = open(os.path.join(here, 'NEWS.txt')).read() version = '0.0.3' +# the only reason this is added is because it's become a part of python 3.9. +# the project standard is python 3.7 however in future that will be updated. +# for now, cached_property is RELUCTANTLY added but a *copy* is added so +# that the generation of HDL is not critically dependent on random crap +# off the internet. you're spending USD 16 *MILLION* on masks, you better +# be absolutely paranoid-level certain you know where every piece of the +# chain creating the HDL comes from. +cprop = "git+https://git.libre-soc.org/git/cached-property.git@1.5.2" \ + "#egg=cached-property-1.5.2" + # using pip3 for ongoing development is a royal pain. seriously not # recommended. therefore a number of these dependencies have been # commented out. *they are still required* - they will need installing @@ -15,7 +25,7 @@ version = '0.0.3' install_requires = [ # NOT ok to install using pip3 https://git.libre-soc.org/?p=nmigen.git - 'nmigen>=0.1,<=0.5', + 'nmigen>=0.0,<=0.5', # can be obtained with pip3, best done manually # https://git.libre-soc.org/?p=nmutil.git 'libresoc-nmutil>=0.0.0,<=1.0', @@ -23,7 +33,15 @@ install_requires = [ 'pygdbmi==0.9.0.3', # gdb machine interface, requires older version (sigh) 'ply', # python lex yacc. very cool 'astor', # python AST manipulation - 'cffi' # LuaJIT-style C FFI for Python + 'cffi', # LuaJIT-style C FFI for Python + + # git url needed for having `pip3 install -e .` install from libre-soc git + 'cached-property@'+cprop, +] + +# git url needed for having `setup.py develop` install from libre-soc git +dependency_links = [ + cprop, ] test_requires = [ @@ -55,6 +73,7 @@ setup( include_package_data=True, zip_safe=False, install_requires=install_requires, + dependency_links=dependency_links, tests_require=test_requires, test_suite='nose.collector', entry_points={ @@ -63,7 +82,9 @@ setup( 'pyfnwriter=openpower.decoder.pseudo.pyfnwriter:pyfnwriter', 'sv_analysis=openpower.sv.sv_analysis:main', 'pypowersim=openpower.decoder.isa.pypowersim:run_simulation', - 'pysvp64asm=openpower.sv.trans.svp64:asm_process' - ] - } + 'pysvp64asm=openpower.insndb.asm:main', + 'pysvp64db=openpower.insndb.db:main', + 'pysvp64dis=openpower.insndb.disasm:main', + ], + }, )