Skip to content

Commit

Permalink
Work around "[Error 35] Resource unavailable" on Python 2.7 during CI…
Browse files Browse the repository at this point in the history
… conda packaging (plotly#1259)

* Work around ""[Error 35] Resource unavailable" on Python 2.7
* Write output file to artifacts directory
  • Loading branch information
jonmmease authored and michaelbabyn committed Dec 22, 2018
1 parent 0b8057e commit 3724e5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .circleci/create_conda_packages.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Install conda dependencies
conda install -y conda-build conda-verify zip

# Make artifacts directory (will be uploaded to CircleCI after build)
mkdir artifacts

# Perform build
conda build --python $PYTHON_VERSION recipe/
conda build --python $PYTHON_VERSION recipe/ > artifacts/conda-build.out.txt 2>&1

# Convert to other architectures
mkdir -p ./conda_packages_${PYTHON_VERSION}/linux-64/
Expand All @@ -13,5 +16,4 @@ conda convert -p win-64 ./conda_packages_${PYTHON_VERSION}/linux-64/plotly-*.tar
conda convert -p win-32 ./conda_packages_${PYTHON_VERSION}/linux-64/plotly-*.tar.bz2 -o ./conda_packages_${PYTHON_VERSION}/

# zip up packages into artifacts directory
mkdir artifacts
zip -r artifacts/conda_packages_${PYTHON_VERSION}.zip ./conda_packages_${PYTHON_VERSION}/
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source:

build:
number: 0
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv"
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-cache-dir -v"

requirements:
build:
Expand Down

0 comments on commit 3724e5e

Please sign in to comment.