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.9.5",
  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. "numpy==2.0.0",
  15. "pillow==10.4.0",
  16. "prometheus-client==0.20.0",
  17. "protobuf==5.27.1",
  18. "psutil==6.0.0",
  19. "pynvml==11.5.3",
  20. "requests==2.32.3",
  21. "rich==13.7.1",
  22. "safetensors==0.4.3",
  23. "tenacity==9.0.0",
  24. "tiktoken==0.7.0",
  25. "tokenizers==0.19.1",
  26. "tqdm==4.66.4",
  27. "transformers==4.43.3",
  28. "uuid==1.30",
  29. "tinygrad @ git+https://github.com/tinygrad/tinygrad.git@639af3f823cf242a1945dc24183e52a9df0af2b7",
  30. ]
  31. # Add macOS-specific packages if on Darwin (macOS)
  32. if sys.platform.startswith("darwin"):
  33. install_requires.extend(
  34. [
  35. "mlx==0.16.0",
  36. "mlx-lm==0.16.1",
  37. ]
  38. )
  39. extras_require = {
  40. "linting": [
  41. "pylint==3.2.6",
  42. "ruff==0.5.5",
  43. "mypy==1.11.0",
  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. )