Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
b9d7b7d2
Commit
b9d7b7d2
authored
Oct 31, 2019
by
Ilya Churaev
Committed by
Michał Karzyński
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed python build for some debug configurations (#3815)
parent
e733cb27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
CMakeLists.txt
python/CMakeLists.txt
+1
-1
setup.py
python/setup.py
+7
-1
No files found.
python/CMakeLists.txt
View file @
b9d7b7d2
...
...
@@ -38,7 +38,7 @@ add_custom_command(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/
POST_BUILD
WORKING_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
COMMAND
${
MAKE
}
-C ../ DESTDIR=python/_install install && bash build_wheel.sh
COMMAND
${
CMAKE_BUILD_TOOL
}
-C ../ DESTDIR=python/_install install && bash build_wheel.sh
)
add_custom_target
(
python_wheel DEPENDS ngraph
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/
)
...
...
python/setup.py
View file @
b9d7b7d2
...
...
@@ -19,6 +19,7 @@ from setuptools.command.build_ext import build_ext
import
sys
import
setuptools
import
os
import
re
import
distutils.ccompiler
__version__
=
os
.
environ
.
get
(
'NGRAPH_VERSION'
,
'0.0.0-dev'
)
...
...
@@ -73,6 +74,11 @@ else:
'correctly'
.
format
(
NGRAPH_CPP_DIST_DIR
))
sys
.
exit
(
1
)
NGRAPH_CPP_LIBRARY_NAME
=
'ngraph'
"""For some platforms OpenVINO adds 'd' suffix to library names in debug configuration"""
if
len
([
fn
for
fn
in
os
.
listdir
(
NGRAPH_CPP_LIBRARY_DIR
)
if
re
.
search
(
'ngraphd'
,
fn
)]):
NGRAPH_CPP_LIBRARY_NAME
=
'ngraphd'
def
parallelCCompile
(
self
,
...
...
@@ -283,7 +289,7 @@ include_dirs = [PYNGRAPH_ROOT_DIR, NGRAPH_CPP_INCLUDE_DIR, PYBIND11_INCLUDE_DIR]
library_dirs
=
[
NGRAPH_CPP_LIBRARY_DIR
]
libraries
=
[
'ngraph'
]
libraries
=
[
NGRAPH_CPP_LIBRARY_NAME
]
extra_compile_args
=
[]
if
NGRAPH_ONNX_IMPORT_ENABLE
in
[
'TRUE'
,
'ON'
,
True
]:
...
...
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