Skip to content

Feature(..., require_features=[...]) with Require instances doesn't install additional dependencies #58

@ghost

Description

Originally reported by: paluh (Bitbucket: paluh, GitHub: paluh)


Hi,

As far as I understand Feature documentation I should be able to use require_features to force installation of additional requirements when given feature is enabled.

Here is my example setup.py file:

:::python
from setuptools import setup, Distribution, Feature, Require

setup(name='spam', author='Spammer',
      author_email='spammer@example.com', distclass=Distribution,
      features={'eggs': Feature('Spam with eggs', standard=True,
                                require_features=[Require('Eggs', None, 'eggggs')])})

Package based on above setup.py should fail during installation as eggggs package doesn't exists. If I change this package to some existing one it dosn't get installed either.

Am I missing something? If so - should I extend Distribution to handle require_features in any specific manner? Any examples?


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions