Skip to content

Remove cython from install_requires #40

Closed

Description

@zklaus

Having cython in install_requires creates a problem down the line in the conda-forge package, which does not carry cython as a runtime dependency, which in turn leads entry_point resolution in downstream packages to a failure.

Of course, one solution is to add cython as a runtime dependency to the conda-forge package, but I am wondering if cython is actually needed as a runtime dependency. Isn't it enough to have it in setup_requires?

Activity

  1. zklaus commented on Apr 19, 2021

    @zklaus
    Author

    @bjlittle, what's your take on this?

  2. bjlittle commented on May 13, 2021

    @bjlittle
    Member

    @zklaus Sorry, I'm super late to this... 😊

    The install_requires is there for pip really... how are you hitting this problem through conda? Just curious. I'm not really understanding the context of the problem

  3. ocefpaf commented on May 14, 2021

    @ocefpaf
    Member

    For pip, or any other Python packaging, I guess you only need setup_requires. When you add it to install_requires it becomes a run time dependency and pip check will fail if you don't have it installed. It is not really a conda issue, we only catch it b/c we run pip check in our CIs.

  4. self-assigned this
    on May 14, 2021
  5. bjlittle commented on May 14, 2021

    @bjlittle
    Member

    @zklaus Okay, I'm going to address this today, and push another release of python-stratify 👍

  6. zklaus commented on May 14, 2021

    @zklaus
    Author

    Thanks @bjlittle, and no worries. To add to what @ocefpaf said, when using entry_points this check now happens automatically on running a program. That may be a relatively recent change since entry points now use importlib_metadata instead of pkg_resources by default at least on python 3.8, but here we are. Basically, on every run of a program as a first step all declared runtime dependencies are checked, regardless of whether they are actually used.

  7. bjlittle commented on May 14, 2021

    @bjlittle
    Member

    @zklaus Ahhh okay, lovely thanks, now I finally understand the context of what you were originally saying... thanks for clarifying.

    Much appreciated 🍻

  8. bjlittle commented on May 19, 2021

    @bjlittle
    Member

    Closed by #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions