Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
numpy
pandas>=1.1.4
psutil
pyarrow>=4.0.1
ray>=2.1.0
pyspark>=3.1.1,<=3.5.0
netifaces
protobuf>3.19.5,<=3.20.3
28 changes: 18 additions & 10 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,24 @@ def run(self):
copy2(jar_path, JARS_TARGET)
copy2(SCRIPT_PATH, SCRIPT_TARGET)

install_requires = [
"numpy < 2.0.0",
"pandas >= 1.1.4",
"psutil",
"pyarrow >= 4.0.1, <15.0.0",
"ray >= 2.1.0",
"pyspark >= 3.1.1, <=3.5.1",
"netifaces",
"protobuf > 3.19.5, <= 3.20.3"
]

_here = os.path.abspath(os.path.dirname(__file__))
with open('requirements.txt') as f:
required = f.read().splitlines()

python_2 = sys.version_info[0] == 2

def read(file_name):
with open(file_name, 'rU' if python_2 else 'r') as file_handler:
return file_handler.read()


def read_reqs(file_name):
req_path = os.path.join(_here, file_name)
return [req.strip() for req in read(req_path).splitlines() if req.strip()]


install_requires = read_reqs('requirements.txt')

_packages = find_packages()
_packages.append("raydp.jars")
Expand Down