Skip to content

Commit 4c2e3bd

Browse files
committed
Fix problem with Python 3.7.4/mac
1 parent 6294f4e commit 4c2e3bd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,27 @@ env:
1515
- TWINE_USERNAME="mwcraig"
1616
matrix:
1717
- CONDA_PY=3.6
18-
- CONDA_PY=3.7
18+
- CONDA_PY=3.7.3 # 3.7.4 on conda is broken
1919

2020
install:
2121
# Install and set up miniconda.
2222
- if [ $TRAVIS_OS_NAME == "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
2323
- if [ $TRAVIS_OS_NAME == "osx" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
2424
- bash miniconda.sh -b -p $CONDA_INSTALL_LOCN
25-
- export PATH=${CONDA_INSTALL_LOCN}/bin:$PATH
25+
- $CONDA_INSTALL_LOCN/bin/conda init bash
26+
- source ~/.bash_profile
27+
- conda activate base
2628
- conda config --set always_yes true
2729

2830
# Gets us vpnotebook
2931
- conda config --add channels vpython
3032
- conda config --append channels conda-forge
3133

32-
- conda update --quiet conda
34+
- conda install conda python=$CONDA_PY
3335

3436
# Install a couple of dependencies we need for sure.
3537
# Not sure why cython is necessary since it is listed as a build dependency.
36-
- conda install --quiet jinja2 conda-build anaconda-client cython twine pytest
38+
- conda install --quiet jinja2 conda-build=3.18.9 anaconda-client cython twine pytest
3739

3840
# make a wheel building environment to ensure correct python version.
3941
- conda create --quiet -n wheel-build python=$CONDA_PY wheel cython
@@ -67,7 +69,7 @@ script:
6769
# paying attention to CONDA_PY. See:
6870
# https://github.com/conda/conda-build/issues/1832
6971
# - export WHEEL_PACKAGE="$OUTPUT_DIR/*.whl"
70-
- source activate wheel-build; python setup.py bdist_wheel; source deactivate
72+
- conda activate wheel-build; python setup.py bdist_wheel; conda deactivate
7173
- export WHEEL_PACKAGE=dist/*.whl
7274
- echo $CONDA_PACKAGE
7375
- echo $WHEEL_PACKAGE

0 commit comments

Comments
 (0)