Skip to content

--no-deps flag inside requirements.txt #9948

@sergei3000

Description

@sergei3000

What's the problem this feature will solve?

I try to run pip install -r requirements.txt but I'd like one of the packages to be installed without dependencies.

Describe the solution you'd like

Make --no-deps flag work inside requirements.txt

I use AWS Elastic Beanstalk's Python platform. It installs all the packages from requirements.txt during deployment of user's code. One of the packages I use is aiopg and I don't want it to install psycopg2-binary since it is not recommended for use in production. I have the original psycopg2 package in requirements.txt along with another aiopg's dependency async-timeout and that should be enough for aiopg to work smoothly.

Alternative Solutions

I can't find any workaround for this problem.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions