Skip to content

Commit 3724e5e

Browse files
jonmmeasemichaelbabyn
authored andcommitted
Work around "[Error 35] Resource unavailable" on Python 2.7 during CI conda packaging (plotly#1259)
* Work around ""[Error 35] Resource unavailable" on Python 2.7 * Write output file to artifacts directory
1 parent 0b8057e commit 3724e5e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: .circleci/create_conda_packages.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Install conda dependencies
22
conda install -y conda-build conda-verify zip
33

4+
# Make artifacts directory (will be uploaded to CircleCI after build)
5+
mkdir artifacts
6+
47
# Perform build
5-
conda build --python $PYTHON_VERSION recipe/
8+
conda build --python $PYTHON_VERSION recipe/ > artifacts/conda-build.out.txt 2>&1
69

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

1518
# zip up packages into artifacts directory
16-
mkdir artifacts
1719
zip -r artifacts/conda_packages_${PYTHON_VERSION}.zip ./conda_packages_${PYTHON_VERSION}/

Diff for: recipe/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source:
1010

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

1515
requirements:
1616
build:

0 commit comments

Comments
 (0)