Skip to content

Use circleci to build conda packages - #1154

Merged
jonmmease merged 38 commits into
masterfrom
conda_build_updates
Sep 4, 2018
Merged

jonmmease merged 38 commits into
masterfrom
conda_build_updates

Conversation

@jonmmease

@jonmmease jonmmease commented Sep 3, 2018 •

Copy link
Copy Markdown
Contributor

Build conda packages using circle ci.

Previously the conda package was a noarch Python package that was not specific to Python version of operating system. This works fine, except for one problem.

Conda always ensures that all *.py files are byte-compiled to *.pyc when a package is installed, and this can take a long time (~5-10 minutes) for plotly.py since we have so many python files thanks to code generation.

To avoid this problem, this PR uses circleci to build conda packages for each Python version, and then converts that build to each operating system using conda convert. This way, each package includes the pre-compiled byte code for the correct version of Python. This results in a much fast installation experience (compared to conda noarch) and a faster initial import (compared to pip wheel).

Only run on master, release branches, and (for now) this branch.
@jonmmease jonmmease changed the title [WIP] Use circleci to build conda packages Use circleci to build conda packages Sep 4, 2018
@jonmmease
jonmmease merged commit 8586a2a into master Sep 4, 2018
@jonmmease
jonmmease deleted the conda_build_updates branch September 4, 2018 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant