From fd3e59f8b40b1f59c6171cdff0d56dcf713f78d5 Mon Sep 17 00:00:00 2001
From: bannsec <whootandahalf@gmail.com>
Date: Mon, 18 Feb 2019 05:20:46 +0000
Subject: [PATCH] Adding into sdist

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 6f44c61..ef0c203 100755
--- a/setup.py
+++ b/setup.py
@@ -329,7 +329,7 @@ for data_dir in ["magic", "config", "plugins", "modules", "core"]:
 # If doing a build or installation, then create a version.py file
 # which defines the current binwalk version. This file is excluded
 # from git in the .gitignore file.
-if 'install' in ' '.join(sys.argv) or 'build' in ' '.join(sys.argv):
+if 'install' in ' '.join(sys.argv) or 'build' in ' '.join(sys.argv) or 'sdist' in ' '.join(sys.argv):
     sys.stdout.write("creating %s\n" % (VERSION_FILE))
 
     try:
--
libgit2 0.26.0