Skip to content

Kivy requires Cython to be installed by the user in some situations, which makes depending on it as a package problematic #5984

Closed
@flaviusb

Description

@flaviusb

Versions

  • Python: Python 3.6.5
  • OS: Linux (4.12.12-gentoo x86_64)
  • Kivy: 1.10.1
  • Kivy installation method: install_requires in setup.py

Description

I am trying to create a package that uses kivy, that a user can install using pip, so that I can upload it to PyPI. This is a package that a user should be able to have as a dependency in their own package using the usual 'install_requires' method in setup.py, ideally using vanilla setuptools. At present, I have to install Cython separately in order to get Kivy to install, as Kivy does not correctly manage its dependencies.

Code and Logs

After clearing out wheel cache, to replicate installing on a fresh system, and in the directory I am developing the package in:

$ virtualenv --no-site-packages install
Using base prefix '/usr'
New python executable in /home/flaviusb/code/rvit/install/bin/python3.6
Also creating executable in /home/flaviusb/code/rvit/install/bin/python
Installing setuptools, pip, wheel...done.
$ . install/bin/activate
(install) $ pip install -e .
Obtaining file:///home/flaviusb/code/rvit
Collecting kivy (from rvit==0.1)
  Using cached https://files.pythonhosted.org/packages/7d/8b/89d220b7f96dc2662b81319067f679b4cd73cda66f4aa850db5b6c6cfc7a/Kivy-1.10.1.tar.gz
    Complete output from command python setup.py egg_info:
    Using distutils
    
    Cython is missing, it's required for compiling kivy !
    
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-qf1pe7c9/kivy/setup.py", line 232, in <module>
        from Cython.Distutils import build_ext
    ModuleNotFoundError: No module named 'Cython'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-qf1pe7c9/kivy/


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