forked from TencentARC/SEED-Voken
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
38 lines (34 loc) · 1.32 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
import os
from setuptools import setup, find_packages
def parse_requirements(filename):
with open(filename, 'r') as f:
return [
line.strip() for line in f
if line and not line.startswith('#') and '--index-url' not in line
]
def install_special_dependencies():
os.system('pip install torch==2.1.1 --index-url https://download.pytorch.org/whl/cu118')
os.system('pip install torchvision==0.16.1 --index-url https://download.pytorch.org/whl/cu118')
setup(
name="open_magvit2",
version="1.0",
author="vinyesm",
author_email="",
description='Packaging of Open-source replication of Google\'s MAGVIT-v2 tokenizer',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url="https://github.com/vinyesm/Open-MAGVIT2",
download_url="https://github.com/vinyesm/Open-MAGVIT2/archive/refs/tags/v1.0.tar.gz",
packages=find_packages(),
include_package_data=True,
package_data={
'open_magvit2': ['configs/gpu/*.yaml', 'configs/npu/*.yaml'],
},
install_requires=parse_requirements('requirements.txt'),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires='>=3.8',
)