setup.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. [
  36. "mlx==0.16.1",
  37. "mlx-lm==0.16.1",
  38. ]
  39. )
  40. extras_require = {
  41. "linting": [
  42. "pylint==3.2.6",
  43. "ruff==0.5.5",
  44. "mypy==1.11.0",
  45. ],
  46. }
  47. setup(
  48. name="exo",
  49. version="0.0.1",
  50. packages=find_packages(),
  51. install_requires=install_requires,
  52. extras_require=extras_require,
  53. )