2020-03-24 17:12:43 +08:00
|
|
|
error_msg = "Jittor only supports Ubuntu>=16.04 currently."
|
2020-03-25 16:39:46 +08:00
|
|
|
|
2020-03-25 16:41:16 +08:00
|
|
|
try:
|
2020-05-14 11:12:58 +08:00
|
|
|
with open("/etc/os-release", "r", encoding='utf8') as f:
|
2020-03-25 16:41:16 +08:00
|
|
|
s = f.read().splitlines()
|
|
|
|
m = {}
|
|
|
|
for line in s:
|
|
|
|
a = line.split('=')
|
|
|
|
m[a[0]] = a[1].replace("\"", "")
|
|
|
|
except:
|
|
|
|
raise RuntimeError(error_msg)
|
2020-03-25 16:39:46 +08:00
|
|
|
assert m["NAME"] == "Ubuntu" and float(m["VERSION_ID"])>16, error_msg
|
2020-03-19 12:20:54 +08:00
|
|
|
|
|
|
|
import setuptools
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import os
|
|
|
|
|
|
|
|
path = os.path.dirname(__file__)
|
2020-05-17 23:12:30 +08:00
|
|
|
with open(os.path.join(path, "README.md"), "r", encoding='utf8') as fh:
|
2020-03-19 12:20:54 +08:00
|
|
|
long_description = fh.read()
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name='jittor',
|
2020-05-17 23:55:18 +08:00
|
|
|
version='1.1.3',
|
2020-03-19 12:20:54 +08:00
|
|
|
# scripts=[],
|
|
|
|
author="Jittor Group",
|
|
|
|
author_email="ran.donglang@gmail.com",
|
|
|
|
description="a Just-in-time(JIT) deep learning framework",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="http://jittor.org",
|
|
|
|
# packages=setuptools.find_packages(),
|
|
|
|
python_requires='>=3.7',
|
|
|
|
|
|
|
|
packages=["jittor", "jittor.test", "jittor.models", "jittor.utils", "jittor_utils"],
|
2020-03-26 21:31:54 +08:00
|
|
|
package_dir={'': os.path.join(path, 'python')},
|
2020-03-19 12:20:54 +08:00
|
|
|
package_data={'': ['*', '*/*', '*/*/*','*/*/*/*','*/*/*/*/*','*/*/*/*/*/*']},
|
|
|
|
# include_package_data=True,
|
|
|
|
install_requires=[
|
|
|
|
"pybind11",
|
|
|
|
"numpy",
|
|
|
|
"tqdm",
|
2020-03-20 09:49:49 +08:00
|
|
|
"pillow",
|
|
|
|
"astunparse",
|
2020-03-19 12:20:54 +08:00
|
|
|
],
|
2020-03-26 21:31:54 +08:00
|
|
|
)
|