setup.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import sys
  2. import platform
  3. from setuptools import find_packages, setup
  4. # Base requirements for all platforms
  5. install_requires = [
  6. "aiohttp==3.10.2",
  7. "aiohttp_cors==0.7.0",
  8. "aiofiles==24.1.0",
  9. "grpcio==1.64.1",
  10. "grpcio-tools==1.64.1",
  11. "Jinja2==3.1.4",
  12. "netifaces==0.11.0",
  13. "numpy==2.0.0",
  14. "nvidia-ml-py==12.560.30",
  15. "pillow==10.4.0",
  16. "prometheus-client==0.20.0",
  17. "protobuf==5.27.1",
  18. "psutil==6.0.0",
  19. "pydantic==2.9.2",
  20. "requests==2.32.3",
  21. "rich==13.7.1",
  22. "safetensors==0.4.3",
  23. "tenacity==9.0.0",
  24. "tqdm==4.66.4",
  25. "transformers==4.43.3",
  26. "uuid==1.30",
  27. ]
  28. extras_require = {
  29. "formatting": [
  30. "yapf==0.40.2",
  31. ],
  32. "apple_silicon": [
  33. "mlx==0.18.0",
  34. "mlx-lm==0.18.2",
  35. ],
  36. }
  37. # Check if running on macOS with Apple Silicon
  38. if sys.platform.startswith("darwin") and platform.machine() == "arm64":
  39. install_requires.extend(extras_require["apple_silicon"])
  40. setup(
  41. name="exo",
  42. version="0.0.1",
  43. packages=find_packages(),
  44. install_requires=install_requires,
  45. extras_require=extras_require,
  46. package_data={"exo": ["tinychat/**/*"]},
  47. entry_points={"console_scripts": ["exo = exo.main:run"]},
  48. )