Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
1c6ba8a1
Commit
1c6ba8a1
authored
Aug 24, 2015
by
Ehsan Azarnasab
Browse files
fix argument parsing, also there is no trim, should have used strip.
parent
e4691051
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
setup.py
setup.py
+5
-5
No files found.
setup.py
View file @
1c6ba8a1
...
...
@@ -65,16 +65,17 @@ def _get_options():
_options
=
[]
opt_key
=
None
argv
=
[
arg
for
arg
in
sys
.
argv
]
# take a copy
# parse commandline options and consume those we care about
for
opt_idx
,
arg
in
enumerate
(
sys
.
argv
):
for
opt_idx
,
arg
in
enumerate
(
argv
):
if
opt_key
==
'cmake'
:
_cmake_path
=
arg
elif
opt_key
==
'yes'
:
_cmake_extra
.
append
(
'-D{arg}=yes'
.
format
(
arg
=
arg
.
tri
m
()))
_cmake_extra
.
append
(
'-D{arg}=yes'
.
format
(
arg
=
arg
.
s
tri
p
()))
elif
opt_key
==
'no'
:
_cmake_extra
.
append
(
'-D{arg}=no'
.
format
(
arg
=
arg
.
tri
m
()))
_cmake_extra
.
append
(
'-D{arg}=no'
.
format
(
arg
=
arg
.
s
tri
p
()))
elif
opt_key
==
'G'
:
_cmake_extra
.
append
(
'-G {gen}'
.
format
(
gen
=
arg
.
tri
m
()
))
_cmake_extra
+=
[
'-G'
,
arg
.
s
tri
p
()
]
if
opt_key
:
sys
.
argv
.
remove
(
arg
)
...
...
@@ -101,7 +102,6 @@ def _get_options():
sys
.
argv
.
remove
(
arg
)
continue
opt_key
=
None
custom_arg
=
True
if
opt
==
'debug'
:
_cmake_config
=
'Debug'
...
...
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