Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Angel Docampo
burp-ui
Commits
1398316f
Commit
1398316f
authored
Apr 12, 2017
by
Benjamin "Ziirish" SANS
Browse files
improve setup.py
parent
6e566bc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
1398316f
...
...
@@ -84,9 +84,8 @@ VENDOR_TO_KEEP = [
for
p
in
VENDOR_TO_KEEP
:
if
not
os
.
path
.
exists
(
p
):
print
(
'!!'
,
p
)
log
.
info
(
'!! missing: {}'
.
format
(
p
)
)
# sys.exit(0)
class
DevelopWithBuildStatic
(
develop
):
def
install_for_development
(
self
):
...
...
@@ -126,7 +125,7 @@ class PyTest(Command):
errno
=
call
([
'make'
,
'test'
])
raise
SystemExit
(
errno
)
except
OSError
:
print
(
'Looks like the tools to run the tests are missing'
)
log
.
error
(
'Looks like the tools to run the tests are missing'
)
class
BuildStatic
(
Command
):
...
...
@@ -154,10 +153,10 @@ class BuildStatic(Command):
pass
try
:
log
.
info
(
'revision: {}'
.
format
(
rev
))
with
open
(
'burpui/RELEASE'
,
'w'
)
as
f
:
with
open
(
'burpui/RELEASE'
,
'w
b
'
)
as
f
:
f
.
write
(
rev
)
except
:
pass
log
.
error
(
'Unable to create release file'
)
keep
=
VENDOR_TO_KEEP
dirlist
=
[]
for
dirname
,
subdirs
,
files
in
os
.
walk
(
'burpui/static/vendor'
):
...
...
Write
Preview
Supports
Markdown
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