Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
wenyuanbo
tic
Commits
d1cdb623
Commit
d1cdb623
authored
Jan 23, 2018
by
Clouds
Committed by
Tianqi Chen
Jan 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update setup.py (#803)
fix errors when running `python3 setup.py sdist bdist_wheel`
parent
f386bf5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/setup.py
+3
-2
No files found.
python/setup.py
View file @
d1cdb623
...
@@ -18,11 +18,12 @@ else:
...
@@ -18,11 +18,12 @@ else:
from
setuptools
import
setup
from
setuptools
import
setup
from
setuptools.extension
import
Extension
from
setuptools.extension
import
Extension
CURRENT_DIR
=
os
.
path
.
dirname
(
__file__
)
def
get_lib_path
():
def
get_lib_path
():
"""Get library path, name and version"""
"""Get library path, name and version"""
# We can not import `libinfo.py` in setup.py directly since __init__.py
# We can not import `libinfo.py` in setup.py directly since __init__.py
# Will be invoked which introduces dependences
# Will be invoked which introduces dependences
CURRENT_DIR
=
os
.
path
.
dirname
(
__file__
)
libinfo_py
=
os
.
path
.
join
(
CURRENT_DIR
,
'./tvm/_ffi/libinfo.py'
)
libinfo_py
=
os
.
path
.
join
(
CURRENT_DIR
,
'./tvm/_ffi/libinfo.py'
)
libinfo
=
{
'__file__'
:
libinfo_py
}
libinfo
=
{
'__file__'
:
libinfo_py
}
exec
(
compile
(
open
(
libinfo_py
,
"rb"
)
.
read
(),
libinfo_py
,
'exec'
),
libinfo
,
libinfo
)
exec
(
compile
(
open
(
libinfo_py
,
"rb"
)
.
read
(),
libinfo_py
,
'exec'
),
libinfo
,
libinfo
)
...
@@ -126,4 +127,4 @@ if "bdist_wheel" in sys.argv:
...
@@ -126,4 +127,4 @@ if "bdist_wheel" in sys.argv:
os
.
remove
(
"MANIFEST.in"
)
os
.
remove
(
"MANIFEST.in"
)
for
path
in
LIB_LIST
:
for
path
in
LIB_LIST
:
_
,
libname
=
os
.
path
.
split
(
path
)
_
,
libname
=
os
.
path
.
split
(
path
)
os
.
remove
(
"tvm/
%
s"
%
LIB_NAME
)
os
.
remove
(
"tvm/
%
s"
%
libname
)
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