diff --git a/scare.py b/scare.py index be56064..8b7681a 100644 --- a/scare.py +++ b/scare.py @@ -183,7 +183,7 @@ def parseCmd(cmd, smu): return shouldAssemble -if __name__ == '__main__': +def main(): printSplash("cerulean") args = parser.parse_args() print("Type / for help\n") @@ -238,3 +238,6 @@ def parseCmd(cmd, smu): currentAddr = sConfig["emu/baseaddr"] except EOFError: break + +if __name__ == '__main__': + main() diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4f5e281 --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +import setuptools + +setuptools.setup( + name="scare", + version="0.3.0", + description="scare is a multi-arch assembly REPL and emulator for your command line.", + author="netspooky", + license="GPLv2", + license_files=["LICENSE.md"], + classifiers=["License :: OSI Approved :: GNU General Public License v2 (GPLv2)"], + install_requires=["unicorn", "keystone-engine", "capstone"], + py_modules=["scare"], + entry_points={ + "console_scripts": [ + "scare = scare:main", + ] + }, +)