make svanalysis a python console script
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 23 Apr 2021 15:46:39 +0000 (16:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 23 Apr 2021 15:46:39 +0000 (16:46 +0100)
Makefile
setup.py

index d4091c3d9b9111fb60a06345af029a495f2a5415..241bd63edf9d2be6f7050b137907826de558f7da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,9 @@ gitupdate:
        git submodule init
        git submodule update --init --recursive --remote
 
+# now installed as a command (/usr/local/bin/svanalysis) by setup.py
 svanalysis:
-       python3 openpower/sv_analysis.py
+       svanalysis
 
 # now installed as a command (/usr/local/bin/pywriter) by setup.py
 pywriter:
index 00ff7597322a6a9c137d932ceed4faa337886310..7c4a984ff622fe3b4118b8854bae61f33b42a465 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ version = '0.0.1'
 
 install_requires = [
     'nmigen', 
-    #'nmutil',  # can be obtained with pip3, best done manually
+    'nmutil',  # can be obtained with pip3, best done manually
 ]
 
 test_requires = [
@@ -51,6 +51,7 @@ setup(
     entry_points = {
         'console_scripts': [
             'pywriter=openpower.decoder.pseudo.pywriter:pywriter'
+            'sv_analysis=openpower.sv:sv_analysis'
         ]
     }
 )