I am trying to inherit some system wide packages like pep257
, flake8
into my virtual environment when I am creating it.
What I currently do is that I have an environment called base-env
. I have pep257
and flake8
setup in this environment and I use it like this
$ workon base-env
(base-env)$ cpvirtualenv base-env new-env
(new-env)$
Is there a better way than doing this? I checked their documentation but I couldn't find any option for that
Related to virtualenv
but not mkvirtualenv
- virtualenv: Specifing which packages to use system-wide vs local
- Make virtualenv inherit specific packages from your global site-packages
Edit:
By "a better way" I mean, in which I don't have to do cpvirtualenv
. The new environment should setup pep257
, flake8
(or any other package for the matter) automatically inside it when I create it.