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
34e73a6b
Commit
34e73a6b
authored
Aug 21, 2015
by
Ehsan Azarnasab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure only relevant platform artifacts are packaged.
avoid foreign artifacts potentially left over from VM builts.
parent
acf61103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
setup.py
setup.py
+9
-2
No files found.
setup.py
View file @
34e73a6b
...
...
@@ -294,6 +294,11 @@ class build(_build):
# this is where the extension and Python examples are located
out_dir
=
os
.
path
.
join
(
script_dir
,
"./python_examples"
)
# these are the created artifacts we want to package
dll_ext
=
[
'.so'
]
if
sys
.
platform
==
"win32"
:
dll_ext
=
[
'.pyd'
,
'.dll'
]
ext_found
=
False
# manually copy everything to distribution folder with package hierarchy in mind
names
=
os
.
listdir
(
out_dir
)
...
...
@@ -301,9 +306,11 @@ class build(_build):
srcname
=
os
.
path
.
join
(
out_dir
,
name
)
dstname
=
os
.
path
.
join
(
dist_dir
,
name
)
dstextname
=
os
.
path
.
join
(
dist_dir_examples
,
name
)
if
name
.
endswith
(
'.py'
)
or
name
.
endswith
(
'.txt'
):
name
,
extension
=
os
.
path
.
splitext
(
name
.
lower
())
if
extension
in
[
'.py'
,
'.txt'
]:
copy_file
(
srcname
,
dstextname
)
elif
name
.
endswith
(
'.dll'
)
or
name
.
endswith
(
'.so'
)
or
name
.
endswith
(
'.pyd'
)
:
elif
extension
in
dll_ext
:
if
name
.
startswith
(
'dlib'
):
ext_found
=
True
copy_file
(
srcname
,
dstname
)
...
...
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