forked from Blaizzy/mlx-vlm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (35 loc) · 1.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import sys
from pathlib import Path
from setuptools import find_packages, setup
# Get the project root directory
root_dir = Path(__file__).parent
# Add the package directory to the Python path
package_dir = root_dir / "mlx_vlm"
sys.path.append(str(package_dir))
# Read the requirements from the requirements.txt file
requirements_path = root_dir / "requirements.txt"
with open(requirements_path) as fid:
requirements = [l.strip() for l in fid.readlines()]
# Import the version from the package
from version import __version__
# Setup configuration
setup(
name="mlx-vlm",
version=__version__,
description="Vision LLMs on Apple silicon with MLX and the Hugging Face Hub",
long_description=open(root_dir / "README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
author_email="[email protected]",
author="Prince Canuma",
url="https://github.com/Blaizzy/mlx-vlm",
license="MIT",
install_requires=requirements,
packages=find_packages(where=root_dir),
python_requires=">=3.8",
entry_points={
"console_scripts": [
"mlx_vlm.convert = mlx_vlm.convert:main",
"mlx_vlm.generate = mlx_vlm.generate:main",
]
},
)