Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemu3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
nemu3
Commits
c7b5d739
Commit
c7b5d739
authored
Oct 24, 2011
by
alina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validation of linux kernel version in setup.py
parent
5fab780a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
setup.py
setup.py
+8
-0
No files found.
setup.py
View file @
c7b5d739
...
...
@@ -2,6 +2,14 @@
# vim: set fileencoding=utf-8
# vim: ts=4:sw=4:et:ai:sts=4
from
distutils.core
import
setup
,
Extension
,
Command
import
platform
# CHECK dependencies
# Linux kernel >= 2.6.36
l
=
platform
.
uname
()[
2
].
split
(
"-"
)[
0
].
split
(
"."
)
l
.
reverse
()
if
sum
(
int
(
l
[
i
])
*
pow
(
10
,
i
)
for
i
in
xrange
(
len
(
l
)))
<
296
:
raise
RuntimeError
(
"Linux kernel >= 2.6.36 is required"
)
setup
(
name
=
'netns'
,
...
...
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