Skip to content

[WIP] orca as a conda package #107

@jonmmease

Description

@jonmmease

TLDR

I made a WIP conda package for orca:

try out the package with:

$ conda install -c jonmmease plotly-orca

OS X 64, Linux 64, and Windows 64 are all available

Background

In preparation for adding orca image export support to plotly.py, I spent some time today working on a conda package recipe for orca.

Having a conda package means that conda users can install orca with a single command that's consistent across operating systems. It also means that plotly.py and orca can be installed together with a single command:

# Install both plotly.py and orca
$ conda install -c jonmmease plotly plotly-orca

For the time being I just published the packages to my own personal channel (that's the -c jonmmease part), but we should be able to get this into conda-forge at some point, and hopefully even into the official channel eventually. If we get the package into the official main channel, the -c jonmmease part wouldn't be needed.

Approach

The build recipe is actually ended up being fairly simple. See https://github.com/jonmmease/orca-feedstock.

Here's the general flow that's common to each OS (I've tested OS X, Linux, and Windows 64)

  • Clone the orca git repo (For my experiments I actually cloned Hide electron icon from OS X dock #103 with the OS X hide dock fix)
  • npm install
  • npm run pack
  • Copy the extracted installation files into somewhere appropriate in the conda environment.
  • Add a script named orca to somewhere in the conda environment that ends up on the user's path. This orca script just passes command line args through to the orca executable copied above.

And, amazingly, everything seems to work just fine. I've tested installing the package from OS X, Ubuntu, and Windows 10. In each case I can run orca commands to perform image conversions and there are no warning messages, no windows, and no dock or taskbar flickers.

Please try it out from whatever OSs you have access to, let me know how it works, and take a look at the build recipe if you're so inclined 🙂

Notes

  • I built these packages manually using my local machine and some VMs, this should really be done on CI servers at some point.
  • The package is version 1.0.0, but that's not quite accurate. It's actually Hide electron icon from OS X dock #103
  • I don't plan to generally announce this package until the release of the corresponding version of plotly.py

cc: @etpinard @nicolaskruchten @jackparmer @chriddyp @cpsievert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions