Giter VIP home page Giter VIP logo

cairo-feedstock's Introduction

About cairo-feedstock

Feedstock license: BSD-3-Clause

Home: http://cairographics.org/

Package license: LGPL-2.1-only or MPL-1.1

Summary: Cairo is a 2D graphics library with support for multiple output devices.

Development: https://gitlab.freedesktop.org/cairo/cairo

Documentation: https://www.cairographics.org/documentation/

Current build status

Azure
VariantStatus
linux_64 variant
linux_aarch64 variant
linux_ppc64le variant
osx_64 variant
osx_arm64 variant
win_64 variant

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing cairo

Installing cairo from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, cairo can be installed with conda:

conda install cairo

or with mamba:

mamba install cairo

It is possible to list all of the versions of cairo available on your platform with conda:

conda search cairo --channel conda-forge

or with mamba:

mamba search cairo --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search cairo --channel conda-forge

# List packages depending on `cairo`:
mamba repoquery whoneeds cairo --channel conda-forge

# List dependencies of `cairo`:
mamba repoquery depends cairo --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge Anaconda-Cloud channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating cairo-feedstock

If you would like to improve the cairo recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/cairo-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

cairo-feedstock's People

Contributors

beckermr avatar bgruening avatar ccordoba12 avatar conda-forge-admin avatar conda-forge-curator[bot] avatar dhimmel avatar github-actions[bot] avatar hmaarrfk avatar isuruf avatar jakirkham avatar mariusvniekerk avatar ocefpaf avatar oschwartz10612 avatar pkgw avatar regro-cf-autotick-bot avatar ryanvolz avatar tjakob avatar tschoonj avatar xhochy avatar xylar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cairo-feedstock's Issues

ImportError: No module named 'cairo' after "successful" install?

Install into clean environment:

➜  ~ conda create -n cairo_test
Fetching package metadata ...........
Solving package specifications: 
Package plan for installation in environment /Users/Nick/anaconda/envs/cairo_test:

Proceed ([y]/n)? y

#
# To activate this environment, use:
# > source activate cairo_test
#
# To deactivate this environment, use:
# > source deactivate cairo_test
#

➜  ~ source activate cairo_test
(cairo_test) ➜  ~ conda install cairo -c conda-forge
Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment /Users/Nick/anaconda/envs/cairo_test:

The following NEW packages will be INSTALLED:

    cairo:      1.14.6-4 conda-forge
    fontconfig: 2.12.1-4 conda-forge
    freetype:   2.7-1    conda-forge
    gettext:    0.19.7-1 conda-forge
    glib:       2.51.4-0 conda-forge
    icu:        58.1-1   conda-forge
    libffi:     3.2.1-3  conda-forge
    libiconv:   1.14-4   conda-forge
    libpng:     1.6.28-0 conda-forge
    libxml2:    2.9.4-4  conda-forge
    pcre:       8.39-0   conda-forge
    pixman:     0.34.0-0 conda-forge
    xz:         5.2.2-0  conda-forge
    zlib:       1.2.11-0 conda-forge

Proceed ([y]/n)? y

(cairo_test) ➜  ~ conda list
# packages in environment at /Users/Nick/anaconda/envs/cairo_test:
#
cairo                     1.14.6                        4    conda-forge
fontconfig                2.12.1                        4    conda-forge
freetype                  2.7                           1    conda-forge
gettext                   0.19.7                        1    conda-forge
glib                      2.51.4                        0    conda-forge
icu                       58.1                          1    conda-forge
libffi                    3.2.1                         3    conda-forge
libiconv                  1.14                          4    conda-forge
libpng                    1.6.28                        0    conda-forge
libxml2                   2.9.4                         4    conda-forge
pcre                      8.39                          0    conda-forge
pixman                    0.34.0                        0    conda-forge
xz                        5.2.2                         0    conda-forge
zlib                      1.2.11                        0    conda-forge

Failed import:

(cairo_test) ➜  ~ python
Python 3.5.3 | packaged by conda-forge | (default, Feb 10 2017, 07:09:50) 
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cairo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'cairo'
>>> 

Conda info:

    (cairo_test) ➜  ~ conda info
Current conda install:

               platform : osx-64
          conda version : 4.3.16
       conda is private : False
      conda-env version : 4.3.16
    conda-build version : not installed
         python version : 3.5.3.final.0
       requests version : 2.13.0
       root environment : /Users/Nick/anaconda  (writable)
    default environment : /Users/Nick/anaconda/envs/cairo_test
       envs directories : /Users/Nick/anaconda/envs
                          /Users/Nick/.conda/envs
          package cache : /Users/Nick/anaconda/pkgs
                          /Users/Nick/.conda/pkgs
           channel URLs : https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : /Users/Nick/.condarc
           offline mode : False
             user-agent : conda/4.3.16 requests/2.13.0 CPython/3.5.3 Darwin/16.5.0 OSX/10.12.4
                UID:GID : 501:20

X11 support on OS X

Hi,

I'm experiencing issues using cairo with the new xorg-* packages when building PyNGL: conda-forge/pyngl-feedstock#3

I suspect that this is due to the following section of build.sh:

if [ $(uname) == Darwin ]; then
    export XWIN_ARGS="--disable-xlib -disable-xcb --disable-glitz"
fi

Should this be changed now that X11 support is available for Mac on conda-forge?

ImportError: No module named 'cairocffi'

Hello,

I need to install cairocffi in order to use some example files from scikit-rf. However even though I used pip install cairocffi, I get the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/matplotlib-2.2.0-py3.5-linux-armv7l.egg/matplotlib/backends/backend_cairo.py", line 24, in <module>
    import cairocffi as cairo
ImportError: No module named 'cairocffi'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/matplotlib-2.2.0-py3.5-linux-armv7l.egg/matplotlib/backends/backend_cairo.py", line 27, in <module>
    import cairo
ImportError: No module named 'cairo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/Desktop/Backup/scikit-rf-master/skrf/plotting.py", line 40, in <module>
    import matplotlib.pyplot as plb
  File "/usr/local/lib/python3.5/dist-packages/matplotlib-2.2.0-py3.5-linux-armv7l.egg/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/local/lib/python3.5/dist-packages/matplotlib-2.2.0-py3.5-linux-armv7l.egg/matplotlib/backends/__init__.py", line 62, in pylab_setup
    [backend_name], 0)
  File "/usr/local/lib/python3.5/dist-packages/matplotlib-2.2.0-py3.5-linux-armv7l.egg/matplotlib/backends/backend_gtk3agg.py", line 10, in <module>
    from .backend_cairo import cairo, HAS_CAIRO_CFFI
  File "/usr/local/lib/python3.5/dist-packages/matplotlib-2.2.0-py3.5-linux-armv7l.egg/matplotlib/backends/backend_cairo.py", line 29, in <module>
    raise ImportError("cairo backend requires that cairocffi or pycairo "
ImportError: cairo backend requires that cairocffi or pycairo is installed

Checking on pip freeze does show cairocffi listed but I can't understand why this code cannot read it.
Any help would be greatly appreciated.

Package snapshot releases?

We currently package the "stable" 1.14.x series of Cairo releases. But there is also the 1.15.x "snapshot" series, which may not be "stable" but is at least formalized enough that there are numbered releases. The latest releases of the librsvg package rely on these snapshots, so we can't package them until something in the 1.15.x series or beyond gets packaged.

Anyway, the question is whether we should only package stable releases or start tracking the snapshots. I tend to think that we should stick with the stable series, but I wanted to bring the matter up for discussion.

Missing cairo-quartz in recent macOS packages

In the cairo-1.14.10-0.tar.bz2 package for osx-64, the files cairo-quartz.pc and cairo-quartz-font.pc were included. However in the cairo-1.14.10-he56eebe_1.tar.bz2 package or the cairo-1.14.12-he56eebe_0.tar-1.bz2 package for osx-64 these files are gone. As a result things like gtk2 don't find them and fail to build.

Edit: FTR here are the differences ( 014790c...8df80fb ).

xref: conda-forge/gtk2-feedstock#1

Fix Windows build

Windows is currently disabled. We should try to fix this up and get it going again. Will require xz.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.