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
2ed39e91
Commit
2ed39e91
authored
Nov 27, 2019
by
Neo Chien
Committed by
Tianqi Chen
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SETUP] Add optional dependencies to extras_require (#4428)
parent
3d434e84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
python/setup.py
+16
-0
No files found.
python/setup.py
View file @
2ed39e91
...
...
@@ -36,6 +36,7 @@ else:
CURRENT_DIR
=
os
.
path
.
dirname
(
__file__
)
def
get_lib_path
():
"""Get library path, name and version"""
# We can not import `libinfo.py` in setup.py directly since __init__.py
...
...
@@ -56,8 +57,10 @@ def get_lib_path():
libs
=
None
return
libs
,
version
LIB_LIST
,
__version__
=
get_lib_path
()
def
config_cython
():
"""Try to configure cython and return cython configuration"""
if
os
.
name
==
'nt'
:
...
...
@@ -101,6 +104,7 @@ def config_cython():
print
(
"WARNING: Cython is not installed, will compile without cython module"
)
return
[]
class
BinaryDistribution
(
Distribution
):
def
has_ext_modules
(
self
):
return
True
...
...
@@ -108,6 +112,7 @@ class BinaryDistribution(Distribution):
def
is_pure
(
self
):
return
False
include_libs
=
False
wheel_include_libs
=
False
if
not
os
.
getenv
(
'CONDA_BUILD'
):
...
...
@@ -138,10 +143,12 @@ if include_libs:
"data_files"
:
[(
'tvm'
,
LIB_LIST
)]
}
def
get_package_data_files
():
# Relay standard libraries
return
[
'relay/std/prelude.rly'
]
setup
(
name
=
'tvm'
,
version
=
__version__
,
description
=
"TVM: An End to End Tensor IR/DSL Stack for Deep Learning Systems"
,
...
...
@@ -152,6 +159,15 @@ setup(name='tvm',
'attrs'
,
'psutil'
,
],
extras_require
=
{
'test'
:
[
'PIL'
,
'matplotlib'
],
'extra_feature'
:
[
'tornado'
,
'psutil'
,
'xgboost'
,
'mypy'
,
'orderedset'
,
'antlr4-python3-runtime'
]},
packages
=
find_packages
(),
package_dir
=
{
'tvm'
:
'tvm'
},
package_data
=
{
'tvm'
:
get_package_data_files
()},
...
...
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