many linux support

This commit is contained in:
Dun Liang 2021-05-14 16:18:34 +08:00
parent 67e8e9a1ea
commit 8e4e2fd9fa
3 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,7 @@
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.2.3.6'
__version__ = '1.2.3.7'
from . import lock
with lock.lock_scope():
ori_int = int

View File

@ -1000,6 +1000,8 @@ os_type = {
"ubuntu": "ubuntu",
"debian": "ubuntu",
"centos": "centos",
"rhel": "ubuntu",
"fedora": "ubuntu",
}
version_file = os.path.join(jittor_path, "version")
if os.path.isfile(version_file) and not os.path.isdir(os.path.join(jittor_path, "src", "__data__")):

View File

@ -14,6 +14,14 @@ def run_cmd(cmd):
print("RUN CMD:", cmd)
assert os.system(cmd) == 0
# ubuntu
# debian9
# centos
# redhat8: docker run -it --name test registry.access.redhat.com/ubi8/ubi:8.1 bash
# fedora: docker run -it fedora
# archlinux: ???
# manjaro: ???
def run_in_centos(env):
dockerfile_src = r"""
FROM centos:7
@ -28,6 +36,7 @@ def run_in_centos(env):
RUN cd Python-3.8.3 && ./configure --enable-optimizations && make altinstall -j8
# install g++-7
# or yum install gcc-g++
RUN yum install centos-release-scl -y
RUN yum install devtoolset-7-gcc-c++ -y
RUN yum install which -y