mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-23 17:38:10 +00:00
Improved the script file
This commit is contained in:
27
setup.py
27
setup.py
@@ -1,20 +1,29 @@
|
|||||||
import os
|
import os
|
||||||
import pkg_resources
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
|
# Path to the requirements file
|
||||||
|
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
|
||||||
|
|
||||||
|
# Read the requirements from the requirements file
|
||||||
|
if os.path.exists(requirements_path):
|
||||||
|
with open(requirements_path, 'r') as f:
|
||||||
|
install_requires = [str(r) for r in pkg_resources.parse_requirements(f)]
|
||||||
|
else:
|
||||||
|
install_requires = []
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="diffsynth",
|
name="diffsynth",
|
||||||
py_modules=["diffsynth"],
|
|
||||||
version="1.0.0",
|
version="1.0.0",
|
||||||
description="",
|
description="A library for differential synthesis.",
|
||||||
author="Artiprocher",
|
author="Artiprocher",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=[
|
install_requires=install_requires,
|
||||||
str(r)
|
include_package_data=True,
|
||||||
for r in pkg_resources.parse_requirements(
|
classifiers=[
|
||||||
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
|
"Programming Language :: Python :: 3",
|
||||||
)
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
],
|
],
|
||||||
include_package_data=True
|
python_requires='>=3.6',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user