File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,13 @@ jobs:
7171
7272
7373install :
74- - source script/conda.sh
75- - conda create --yes -n test python=${PYTHON_VERSION}
76- - source activate test
77- - conda install pytorch=${TORCH_VERSION} ${TOOLKIT} -c pytorch --yes
78- - pip install flake8 codecov
7974 - source script/cuda.sh
75+ - source script/conda.sh
8076 - python setup.py install
8177
8278script :
83- - flake8 .
79+ - pip install flake8 codecov
80+ - if [ "${PYTHON_VERSION}" != "3.5" ]; then flake8 .; fi
8481 - python setup.py test
8582after_success :
8683 - python setup.py bdist_wheel --dist-dir=dist/torch-${TORCH_VERSION}/${IDX}
Original file line number Diff line number Diff line change @@ -22,3 +22,14 @@ if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
2222fi
2323
2424conda update --yes conda
25+
26+ conda create --yes -n test python=" ${PYTHON_VERSION} "
27+ source activate test
28+ conda install pytorch=" ${TORCH_VERSION} " " ${TOOLKIT} " -c pytorch --yes
29+
30+ # Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
31+ if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${IDX} " != " cpu" ]; then
32+ sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/script/module.h
33+ sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/argument_spec.h
34+ sed -i.bak -e ' s/return \*(this->value)/return \*((type\*)this->value)/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
35+ fi
Original file line number Diff line number Diff line change 9292if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${IDX} " = " cu92" ]; then
9393 sed -i.bak -e ' 129,141d' " ${CUDA_HOME} /include/crt/host_config.h"
9494fi
95-
96- # Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
97- if [ " ${TRAVIS_OS_NAME} " = " windows" ] && [ " ${IDX} " != " cpu" ]; then
98- sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/script/module.h
99- sed -i.bak -e ' s/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/argument_spec.h
100- sed -i.bak -e ' s/return \*(this->value)/return \*((type\*)this->value)/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
101- fi
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def get_extensions():
5757 return extensions
5858
5959
60- install_requires = []
60+ install_requires = ['zipp' ]
6161setup_requires = ['pytest-runner' ]
6262tests_require = ['pytest' , 'pytest-cov' ]
6363
You can’t perform that action at this time.
0 commit comments