forked from modin-project/modin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (57 loc) · 2.23 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from setuptools import setup, find_packages
import versioneer
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
dask_deps = ["dask>=2.22.0", "distributed>=2.22.0"]
# ray==2.5.0 broken: https://github.com/conda-forge/ray-packages-feedstock/issues/100
# pydantic<2: https://github.com/modin-project/modin/issues/6336
ray_deps = ["ray[default]>=1.13.0,!=2.5.0", "pyarrow>=7.0.0", "pydantic<2"]
unidist_deps = ["unidist[mpi]>=0.2.1"]
spreadsheet_deps = ["modin-spreadsheet>=0.1.0"]
sql_deps = ["dfsql>=0.4.2", "pyparsing<=2.4.7"]
all_deps = dask_deps + ray_deps + unidist_deps + spreadsheet_deps
# Distribute 'modin-autoimport-pandas.pth' along with binary and source distributions.
# This file provides the "import pandas before Ray init" feature if specific
# environment variable is set (see https://github.com/modin-project/modin/issues/4564).
cmdclass = versioneer.get_cmdclass()
extra_files = ["modin-autoimport-pandas.pth"]
class AddPthFileBuild(cmdclass["build_py"]):
def _get_data_files(self):
return (super()._get_data_files() or []) + [
(".", ".", self.build_lib, extra_files)
]
class AddPthFileSDist(cmdclass["sdist"]):
def make_distribution(self):
self.filelist.extend(extra_files)
return super().make_distribution()
cmdclass["build_py"] = AddPthFileBuild
cmdclass["sdist"] = AddPthFileSDist
setup(
name="modin",
version=versioneer.get_version(),
cmdclass=cmdclass,
description="Modin: Make your pandas code run faster by changing one line of code.",
packages=find_packages(exclude=["scripts", "scripts.*"]),
include_package_data=True,
license="Apache 2",
url="https://github.com/modin-project/modin",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[
"pandas>=2,<2.1",
"packaging>=21.0",
"numpy>=1.20.3",
"fsspec>=2021.07.0",
"psutil>=5.8.0",
],
extras_require={
# can be installed by pip install modin[dask]
"dask": dask_deps,
"ray": ray_deps,
"unidist": unidist_deps,
"spreadsheet": spreadsheet_deps,
"sql": sql_deps,
"all": all_deps,
},
python_requires=">=3.8",
)