forked from dask/dask-xgboost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·35 lines (32 loc) · 1.04 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
import os
from setuptools import setup
requires = open("requirements.txt").read().strip().split("\n")
install_requires = []
extras_require = {"sparse": ["sparse", "scipy"]}
for r in requires:
if ";" in r:
# requirements.txt conditional dependencies need to be reformatted for
# wheels to the form: `'[extra_name]:condition' : ['requirements']`
req, cond = r.split(";", 1)
cond = ":" + cond
cond_reqs = extras_require.setdefault(cond, [])
cond_reqs.append(req)
else:
install_requires.append(r)
setup(
name="dask-xgboost",
version="0.1.9",
description="Interactions between Dask and XGBoost",
maintainer="Matthew Rocklin",
maintainer_email="mrocklin@continuum.io",
url="https://github.com/dask/dask-xgboost",
license="BSD",
install_requires=install_requires,
extras_require=extras_require,
packages=["dask_xgboost"],
long_description=(
open("README.rst").read() if os.path.exists("README.rst") else ""
),
zip_safe=False,
)