setup.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import sys
  2. from setuptools import find_packages, setup
  3. # Base requirements for all platforms
  4. install_requires = [
  5. "aiohttp==3.10.2",
  6. "aiohttp_cors==0.7.0",
  7. "aiofiles==24.1.0",
  8. "blobfile==2.1.1",
  9. "grpcio==1.64.1",
  10. "grpcio-tools==1.64.1",
  11. "hf-transfer==0.1.8",
  12. "huggingface-hub==0.24.5",
  13. "Jinja2==3.1.4",
  14. "netifaces==0.11.0",
  15. "numpy==2.0.0",
  16. "pillow==10.4.0",
  17. "prometheus-client==0.20.0",
  18. "protobuf==5.27.1",
  19. "psutil==6.0.0",
  20. "pynvml==11.5.3",
  21. "requests==2.32.3",
  22. "rich==13.7.1",
  23. "safetensors==0.4.3",
  24. "tenacity==9.0.0",
  25. "tiktoken==0.7.0",
  26. "tokenizers==0.19.1",
  27. "tqdm==4.66.4",
  28. "transformers==4.43.3",
  29. "uuid==1.30",
  30. "tinygrad @ git+https://github.com/tinygrad/tinygrad.git@639af3f823cf242a1945dc24183e52a9df0af2b7",
  31. ]
  32. # Add macOS-specific packages if on Darwin (macOS)
  33. if sys.platform.startswith("darwin"):
  34. install_requires.extend([
  35. "mlx==0.16.3",
  36. "mlx-lm==0.17.0",
  37. ])
  38. extras_require = {
  39. "linting": [
  40. "pylint==3.2.6",
  41. "ruff==0.5.5",
  42. "mypy==1.11.0",
  43. "yapf==0.40.2",
  44. ],
  45. }
  46. setup(
  47. name="exo",
  48. version="0.0.1",
  49. packages=find_packages(),
  50. install_requires=install_requires,
  51. extras_require=extras_require,
  52. )