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
c7438a66
Commit
c7438a66
authored
Apr 16, 2018
by
tsocha
Committed by
Robert Kimball
Apr 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Py] Modify default paths (#845)
* Update default paths in setup.py * Update defaults arguments in tox
parent
b5a0d734
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
setup.py
python/setup.py
+3
-2
tox.ini
python/tox.ini
+3
-3
No files found.
python/setup.py
View file @
c7438a66
...
...
@@ -24,6 +24,7 @@ import distutils.ccompiler
__version__
=
'0.2.0'
PYNGRAPH_SOURCE_DIR
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
NGRAPH_DEFAULT_INSTALL_DIR
=
os
.
environ
.
get
(
'HOME'
)
def
find_ngraph_dist_dir
():
...
...
@@ -31,7 +32,7 @@ def find_ngraph_dist_dir():
if
os
.
environ
.
get
(
'NGRAPH_CPP_BUILD_PATH'
):
ngraph_dist_dir
=
os
.
environ
.
get
(
'NGRAPH_CPP_BUILD_PATH'
)
else
:
ngraph_dist_dir
=
os
.
path
.
join
(
PYNGRAPH_SOURCE_DIR
,
'build/
ngraph_dist'
)
ngraph_dist_dir
=
os
.
path
.
join
(
NGRAPH_DEFAULT_INSTALL_DIR
,
'
ngraph_dist'
)
found
=
os
.
path
.
exists
(
os
.
path
.
join
(
ngraph_dist_dir
,
'include/ngraph'
))
if
not
found
:
...
...
@@ -47,7 +48,7 @@ def find_pybind_headers_dir():
if
os
.
environ
.
get
(
'PYBIND_HEADERS_PATH'
):
pybind_headers_dir
=
os
.
environ
.
get
(
'PYBIND_HEADERS_PATH'
)
else
:
pybind_headers_dir
=
os
.
path
.
join
(
PYNGRAPH_SOURCE_DIR
,
'
build/
pybind11'
)
pybind_headers_dir
=
os
.
path
.
join
(
PYNGRAPH_SOURCE_DIR
,
'pybind11'
)
found
=
os
.
path
.
exists
(
os
.
path
.
join
(
pybind_headers_dir
,
'include/pybind11'
))
if
not
found
:
...
...
python/tox.ini
View file @
c7438a66
...
...
@@ -8,9 +8,9 @@ deps =
-rrequirements.txt
-rtest_requirements.txt
setenv
=
NGRAPH_CPP_BUILD_PATH
=
{env:NGRAPH_CPP_BUILD_PATH:
build
/ngraph_dist}
LD_LIBRARY_PATH
=
{env:LD_LIBRARY_PATH:
build
/ngraph_dist/lib}
DYLD_LIBRARY_PATH
=
{env:DYLD_LIBRARY_PATH:
build
/ngraph_dist/lib}
NGRAPH_CPP_BUILD_PATH
=
{env:NGRAPH_CPP_BUILD_PATH:
{homedir}
/ngraph_dist}
LD_LIBRARY_PATH
=
{env:LD_LIBRARY_PATH:
{homedir}
/ngraph_dist/lib}
DYLD_LIBRARY_PATH
=
{env:DYLD_LIBRARY_PATH:
{homedir}
/ngraph_dist/lib}
PYBIND_HEADERS_PATH
=
{env:PYBIND_HEADERS_PATH:}
[testenv:py3]
...
...
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