Skip to content

Commit

Permalink
Removed old setup code, updated version to 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Oct 13, 2020
1 parent 5c736ea commit e9dc12c
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
from distutils.dir_util import remove_tree

MODULE_NAME = "binwalk"
MODULE_VERSION = "2.2.0"
MODULE_VERSION = "2.2.1"
SCRIPT_NAME = MODULE_NAME
MODULE_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
#VERSION_FILE = os.path.join(MODULE_DIRECTORY, "src", "binwalk", "core", "version.py")

# Python3 has a built-in DEVNULL; for Python2, we have to open
# os.devnull to redirect subprocess stderr output to the ether.
Expand Down Expand Up @@ -221,13 +220,6 @@ def finalize_options(self):
pass

def run(self):
#sys.stdout.write("removing '%s'\n" % (VERSION_FILE))

#try:
# os.remove(VERSION_FILE)
#except OSError as e:
# sys.stderr.write("failed to remove file '%s': %s\n" % (VERSION_FILE, str(e)))

try:
remove_tree(os.path.join(MODULE_DIRECTORY, "build"))
except KeyboardInterrupt as e:
Expand Down Expand Up @@ -326,20 +318,6 @@ def run(self):
for data_dir in ["magic", "config", "plugins", "modules", "core"]:
install_data_files.append("%s%s*" % (data_dir, os.path.sep))

# 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) or 'sdist' in ' '.join(sys.argv):
# sys.stdout.write("creating %s\n" % (VERSION_FILE))
#
# try:
# with open(VERSION_FILE, "w") as fp:
# fp.write("# This file has been auto-generated by setup.py\n")
# fp.write('__version__ = "%s"\n' % MODULE_VERSION)
# except IOError as e:
# sys.stderr.write("failed to create file %s: %s\n" % (VERSION_FILE, str(e)))
# sys.exit(1)

# Install the module, script, and support files
setup(
name=MODULE_NAME,
Expand Down

0 comments on commit e9dc12c

Please sign in to comment.