Move signatures.db to mythril.support

pull/882/head
Nikhil Parasaram 6 years ago
parent 500aeb5df3
commit 180de41c2c
  1. 2
      MANIFEST.in
  2. 4
      mythril/mythril.py
  3. 0
      mythril/support/signatures.db
  4. 5
      setup.py

@ -1,2 +1,2 @@
include signatures.db
include mythril/support/signatures.db
include mythril/analysis/templates/*

@ -134,8 +134,8 @@ class Mythril(object):
if not os.path.exists(db_path):
# if the default mythril dir doesn't contain a signature DB
# initialize it with the default one from the project root
parent_dir = Path(__file__).parent.parent
copyfile(str(parent_dir / "signatures.db"), db_path)
support_dir = Path(__file__).parent.parent
copyfile(str(support_dir / "signatures.db"), db_path)
return mythril_dir

@ -101,7 +101,10 @@ setup(
tests_require=["pytest>=3.6.0", "pytest_mock", "pytest-cov"],
python_requires=">=3.5",
extras_require={},
package_data={"mythril.analysis.templates": ["*"], "": ["signatures.db"]},
package_data={
"mythril.analysis.templates": ["*"],
"mythril.support": ["signatures.db"],
},
include_package_data=True,
entry_points={"console_scripts": ["myth=mythril.interfaces.cli:main"]},
cmdclass={"verify": VerifyVersionCommand},

Loading…
Cancel
Save