Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
5f7e3cb7
Commit
5f7e3cb7
authored
Aug 19, 2015
by
Ehsan Azarnasab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
read version infor from docs
parent
a2cd5d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
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):
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
):
"""remove a directory and its subdirectories.
"""
...
...
@@ -219,7 +226,7 @@ def rmtree(name):
def
copy_file
(
src
,
dst
):
"""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
)
...
...
@@ -347,7 +354,7 @@ class build_ext(_build_ext):
setup
(
name
=
'dlib'
,
version
=
'0.0.1'
,
version
=
read_version
()
,
keywords
=
[
'dlib'
,
'Computer Vision'
,
'Machine Learning'
],
description
=
'A toolkit for making real world machine learning and data analysis applications'
,
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