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
9e4fe65c
You need to sign in or sign up before continuing.
Commit
9e4fe65c
authored
Aug 20, 2015
by
Ehsan Azarnasab
Browse files
add __version__ and import extension to the package
parent
26b9de70
Changes
1
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):
...
@@ -167,7 +167,6 @@ def run_process(cmds, timeout=None):
t
.
start
()
t
.
start
()
_time
=
time
.
time
()
_time
=
time
.
time
()
elapsed
=
0
e
=
None
e
=
None
try
:
try
:
while
t
.
isAlive
():
while
t
.
isAlive
():
...
@@ -271,8 +270,11 @@ class build(_build):
...
@@ -271,8 +270,11 @@ class build(_build):
dist_dir
=
os
.
path
.
join
(
script_dir
,
"./dist/dlib"
)
dist_dir
=
os
.
path
.
join
(
script_dir
,
"./dist/dlib"
)
# create the module init files
# create the module init files
with
open
(
os
.
path
.
join
(
dist_dir
,
'__init__.py'
),
'w'
):
with
open
(
os
.
path
.
join
(
dist_dir
,
'__init__.py'
),
'w'
)
as
f
:
pass
# 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'
):
with
open
(
os
.
path
.
join
(
dist_dir_examples
,
'__init__.py'
),
'w'
):
pass
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