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
9e4fe65c
Commit
9e4fe65c
authored
Aug 20, 2015
by
Ehsan Azarnasab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add __version__ and import extension to the package
parent
26b9de70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
setup.py
setup.py
+5
-3
No files found.
setup.py
View file @
9e4fe65c
...
...
@@ -167,7 +167,6 @@ def run_process(cmds, timeout=None):
t
.
start
()
_time
=
time
.
time
()
elapsed
=
0
e
=
None
try
:
while
t
.
isAlive
():
...
...
@@ -271,8 +270,11 @@ class build(_build):
dist_dir
=
os
.
path
.
join
(
script_dir
,
"./dist/dlib"
)
# create the module init files
with
open
(
os
.
path
.
join
(
dist_dir
,
'__init__.py'
),
'w'
):
pass
with
open
(
os
.
path
.
join
(
dist_dir
,
'__init__.py'
),
'w'
)
as
f
:
# just so that we can `import dlib` and not `from dlib import dlib`
f
.
write
(
'from .dlib import *
\n
'
)
# add version here
f
.
write
(
'__version__ = {ver}
\n
'
.
format
(
ver
=
read_version
()))
with
open
(
os
.
path
.
join
(
dist_dir_examples
,
'__init__.py'
),
'w'
):
pass
...
...
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