Skip to content

Do not exclude legitimately installed packages from pip freeze #1610

@piotr-dobrogost

Description

@piotr-dobrogost

Silently excluding legitimately installed packages like setuptools, distribute and pip is not ok. For instance, as requirements file can contain options for pip, someone might want to ensure that the proper version of pip (able to understand these options) would be available. Also, @qwcode gave rationale for not excluding setuptools in issue #1606:

with pip 1.5 able to install from wheel without setuptools, I can see a real case where it's meaningful for setuptools to be listed, i.e. when one of the packages needs setuptools due to an import of pkg_resources, but the install is just using pip (and no setuptools) to install from wheel.

Reasons for having setuptools as a requirement were given in answers to my recent question Is there any sense to put setuptools as a requirement? on distutils-sig mailing list.

There should be an option so that users could decide themselves what packages if any they want to exclude. In any case there should be information about excluded packages presented in the output of every command affected.

By legitimately installed I mean all outside of stdlib as excluding stdlib packages with metadata is another subject – see issue #1570.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: freeze'pip freeze' relatedauto-lockedOutdated issues that have been locked by automationtype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions