Skip to content

Don't import virtualenv if it is not actually needed. #510

Closed
@KOLANICH

Description

@KOLANICH

Importing virtualenv causes setuptools plugins being executed. So it causes them being initialized and executed multiple times, which is slow. I know that that flaw is not in the build, but importing the unneeded (I always use -n flag) virtualenv and so wasting time and memory on its loading is a flaw by itself.

It is proposed to move importing of virtualenv into the functions actually using it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions