Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kwant
kwant
Commits
c867f67a
There was a problem fetching the pipeline summary.
Commit
c867f67a
authored
8 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
setup.py: consistently use sys.exit
parent
d36b3aa3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+8
-8
8 additions, 8 deletions
setup.py
with
8 additions
and
8 deletions
setup.py
+
8
−
8
View file @
c867f67a
...
...
@@ -66,7 +66,7 @@ def configure_extensions(exts, aliases=(), build_summary=None):
if
l
!=
config_file_option
or
not
config_file
:
print
(
'
error: Expecting {}=PATH
'
.
format
(
config_file_option
),
file
=
sys
.
stderr
)
exit
(
1
)
sys
.
exit
(
1
)
sys
.
argv
.
pop
(
i
)
break
else
:
...
...
@@ -88,7 +88,7 @@ def configure_extensions(exts, aliases=(), build_summary=None):
if
long
in
configs
:
print
(
'
Error: both {} and {} sections present in {}.
'
.
format
(
short
,
long
,
config_file
))
exit
(
1
)
sys
.
exit
(
1
)
configs
[
long
]
=
configs
[
short
]
del
configs
[
short
]
...
...
@@ -126,7 +126,7 @@ def configure_extensions(exts, aliases=(), build_summary=None):
if
unknown_sections
:
print
(
'
Error: Unknown sections in file {}: {}
'
.
format
(
config_file
,
'
,
'
.
join
(
unknown_sections
)))
exit
(
1
)
sys
.
exit
(
1
)
return
exts
...
...
@@ -314,7 +314,7 @@ class sdist(sdist_orig):
print
(
"
Error:
"
,
manifest_in_file
,
"
file is missing and Git is not available
"
"
to regenerate it.
"
,
file
=
sys
.
stderr
)
exit
(
1
)
sys
.
exit
(
1
)
else
:
with
open
(
manifest
,
'
w
'
)
as
f
:
for
name
in
names
:
...
...
@@ -356,7 +356,7 @@ class test(test_orig):
except
:
print
(
'
The Python package
"
pytest
"
is required to run tests.
'
,
file
=
sys
.
stderr
)
exit
(
1
)
sys
.
exit
(
1
)
errno
=
pytest
.
main
(
shlex
.
split
(
self
.
pytest_args
))
sys
.
exit
(
errno
)
...
...
@@ -475,7 +475,7 @@ def maybe_cythonize(exts):
ext
=
'
.cpp
'
else
:
print
(
'
Unknown language: {}
'
.
format
(
language
),
file
=
sys
.
stderr
)
exit
(
1
)
sys
.
exit
(
1
)
pyx_files
=
[]
cythonized_files
=
[]
...
...
@@ -496,7 +496,7 @@ def maybe_cythonize(exts):
msg
=
"
Cython-generated file {} is missing.
"
print
(
banner
(
"
Error
"
),
msg
.
format
(
f
),
""
,
cython_help
,
banner
(),
sep
=
"
\n
"
,
file
=
sys
.
stderr
)
exit
(
1
)
sys
.
exit
(
1
)
for
f
in
pyx_files
+
kwargs
.
get
(
'
depends
'
,
[]):
if
f
==
config_file
:
...
...
@@ -525,7 +525,7 @@ def maybe_cythonize(exts):
print
(
banner
(
"
Error
"
if
error
else
"
Caution
"
),
msg
,
""
,
cython_help
,
banner
(),
sep
=
"
\n
"
,
file
=
sys
.
stderr
)
if
error
:
exit
(
1
)
sys
.
exit
(
1
)
return
result
...
...
This diff is collapsed.
Click to expand it.
Bas Nijholt
@basnijholt
mentioned in merge request
!73 (merged)
·
8 years ago
mentioned in merge request
!73 (merged)
mentioned in merge request !73
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment