Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
c1528779
Commit
c1528779
authored
Sep 13, 2017
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to setup.py
parent
d2fa6bdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
setup.py
setup.py
+6
-6
No files found.
setup.py
View file @
c1528779
...
...
@@ -7,9 +7,10 @@ from distutils.core import setup, Command
from
distutils.dir_util
import
remove_tree
MODULE_NAME
=
"binwalk"
SCRIPT_NAME
=
MODULE_NAME
MODULE_VERSION
=
"2.1.2b"
VERSION_FILE
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"src"
,
"binwalk"
,
"core"
,
"version.py"
)
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.
...
...
@@ -36,8 +37,7 @@ except NameError:
def
which
(
command
):
# /usr/local/bin is usually the default install path, though it may not be in $PATH
usr_local_bin
=
os
.
path
.
sep
.
join
(
[
os
.
path
.
sep
,
'usr'
,
'local'
,
'bin'
,
command
])
usr_local_bin
=
os
.
path
.
sep
.
join
([
os
.
path
.
sep
,
'usr'
,
'local'
,
'bin'
,
command
])
try
:
location
=
subprocess
.
Popen
(
...
...
@@ -226,14 +226,14 @@ class CleanCommand(Command):
sys
.
stderr
.
write
(
"failed to remove file
%
s:
%
s
\n
"
%
(
VERSION_FILE
,
str
(
e
)))
try
:
remove_tree
(
"build"
)
remove_tree
(
os
.
path
.
join
(
MODULE_DIRECTORY
,
"build"
)
)
except
KeyboardInterrupt
as
e
:
raise
e
except
Exception
:
pass
try
:
remove_tree
(
"dist"
)
remove_tree
(
os
.
path
.
join
(
MODULE_DIRECTORY
,
"dist"
)
)
except
KeyboardInterrupt
as
e
:
raise
e
except
Exception
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment