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
5f7e3cb7
Commit
5f7e3cb7
authored
Aug 19, 2015
by
Ehsan Azarnasab
Browse files
read version infor from docs
parent
a2cd5d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
tools/python/setup.py
tools/python/setup.py
+9
-2
No files found.
tools/python/setup.py
View file @
5f7e3cb7
...
@@ -203,6 +203,13 @@ def readme(fname):
...
@@ -203,6 +203,13 @@ def readme(fname):
return
open
(
os
.
path
.
join
(
script_dir
,
fname
)).
read
()
return
open
(
os
.
path
.
join
(
script_dir
,
fname
)).
read
()
def
read_version
():
"""Read version information
"""
major
=
readme
(
'../../docs/.current_release_number'
).
strip
()
minor
=
readme
(
'../../docs/.current_minor_release_number'
).
strip
()
return
major
+
'.'
+
minor
def
rmtree
(
name
):
def
rmtree
(
name
):
"""remove a directory and its subdirectories.
"""remove a directory and its subdirectories.
"""
"""
...
@@ -219,7 +226,7 @@ def rmtree(name):
...
@@ -219,7 +226,7 @@ def rmtree(name):
def
copy_file
(
src
,
dst
):
def
copy_file
(
src
,
dst
):
"""copy a single file and log
"""copy a single file and log
"""
"""
log
.
info
(
"Copying file %s
to
%s."
%
(
src
,
dst
))
log
.
info
(
"Copying file %s
->
%s."
%
(
src
,
dst
))
shutil
.
copy2
(
src
,
dst
)
shutil
.
copy2
(
src
,
dst
)
...
@@ -347,7 +354,7 @@ class build_ext(_build_ext):
...
@@ -347,7 +354,7 @@ class build_ext(_build_ext):
setup
(
setup
(
name
=
'dlib'
,
name
=
'dlib'
,
version
=
'0.0.1'
,
version
=
read_version
()
,
keywords
=
[
'dlib'
,
'Computer Vision'
,
'Machine Learning'
],
keywords
=
[
'dlib'
,
'Computer Vision'
,
'Machine Learning'
],
description
=
'A toolkit for making real world machine learning and data analysis applications'
,
description
=
'A toolkit for making real world machine learning and data analysis applications'
,
long_description
=
readme
(
'../../README.txt'
),
long_description
=
readme
(
'../../README.txt'
),
...
...
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