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
4d65bace
Commit
4d65bace
authored
Sep 07, 2017
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed python3 bugs in setup.py
parent
cb1a0589
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
setup.py
setup.py
+3
-3
No files found.
setup.py
View file @
4d65bace
...
@@ -22,8 +22,8 @@ except ImportError:
...
@@ -22,8 +22,8 @@ except ImportError:
# include the git commit hash as part of the version number reported
# include the git commit hash as part of the version number reported
# by binwalk.
# by binwalk.
try
:
try
:
label
=
subprocess
.
check_output
([
"git"
,
"describe"
],
stderr
=
DEVNULL
)
label
=
subprocess
.
check_output
([
"git"
,
"describe"
],
stderr
=
DEVNULL
)
.
decode
(
'utf-8'
)
MODULE_VERSION
+=
"-"
+
label
.
split
(
'-'
)[
-
1
]
.
strip
(
)
MODULE_VERSION
=
"
%
s-
%
s"
%
(
MODULE_VERSION
,
label
.
split
(
'-'
)[
-
1
]
.
strip
()
)
except
subprocess
.
CalledProcessError
:
except
subprocess
.
CalledProcessError
:
pass
pass
...
@@ -259,7 +259,7 @@ for data_dir in ["magic", "config", "plugins", "modules", "core"]:
...
@@ -259,7 +259,7 @@ for data_dir in ["magic", "config", "plugins", "modules", "core"]:
# This file is excluded from git in the .gitignore file.
# This file is excluded from git in the .gitignore file.
sys
.
stdout
.
write
(
"creating
%
s
%
s"
%
(
VERSION_FILE
,
os
.
linesep
))
sys
.
stdout
.
write
(
"creating
%
s
%
s"
%
(
VERSION_FILE
,
os
.
linesep
))
with
open
(
VERSION_FILE
,
"w"
)
as
fp
:
with
open
(
VERSION_FILE
,
"w"
)
as
fp
:
fp
.
write
(
"# This file has been auto-generated by setup.py
"
+
os
.
linesep
)
fp
.
write
(
"# This file has been auto-generated by setup.py
\n
"
)
fp
.
write
(
'__version__ = "
%
s"'
%
MODULE_VERSION
)
fp
.
write
(
'__version__ = "
%
s"'
%
MODULE_VERSION
)
# Install the module, script, and support files
# Install the module, script, and support files
...
...
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