25 lines
661 B
Python
25 lines
661 B
Python
from setuptools import setup,find_packages
|
|
import os
|
|
path = os.path.dirname(__file__)
|
|
|
|
with open(os.path.join(path, "jsparse/__init__.py"), "r", encoding='utf8') as fh:
|
|
for line in fh:
|
|
if line.startswith('__version__'):
|
|
version = line.split("'")[1]
|
|
break
|
|
else:
|
|
raise RuntimeError("Unable to find version string.")
|
|
|
|
setup(
|
|
name="jsparse",
|
|
version=version,
|
|
author="Jittor Group",
|
|
author_email="jittor@qq.com",
|
|
description="Jittor Sparse Matrix Library",
|
|
url="http://jittor.com",
|
|
python_requires='>=3.7',
|
|
packages=find_packages(path),
|
|
install_requires=[
|
|
"jittor",
|
|
],
|
|
) |