Skip to content

Cartopy 0.15.1 fails to install on travis with no cython #1035

@djhoese

Description

@djhoese

Description

I added cartopy as an optional dependency to my pyresample package (switching from basemap to cartopy) and the installation failed on travis.

  Downloading Cartopy-0.15.1.tar.gz (8.2MB)
    100% |████████████████████████████████| 8.2MB 168kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "/tmp/pip-build-hkgucrv5/cartopy/setup.py", line 45, in <module>
        from Cython.Distutils import build_ext
    ModuleNotFoundError: No module named 'Cython'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-hkgucrv5/cartopy/setup.py", line 47, in <module>
        raise ImportError('Cython 0.15.1+ is required to install cartopy.')
    ImportError: Cython 0.15.1+ is required to install cartopy.

Here's the entire job if you want it: https://travis-ci.org/pytroll/pyresample/jobs/344927488

I see this was addressed in #725 but doesn't seem to be working anymore.

I guess my main concern here is why is Cython needed by the user at installation time? Can't you either store the C/C++ files in the repository and therefore the source tarball or just include them in the built tarball. That way the Cython dependency shouldn't be needed.

Full environment definition

Operating system

Travis CI Image - Linux/Ubuntu

Cartopy version

0.15.1

conda list

See travis build above.

pip list

See travis build above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions