timonweb / django-tailwind

Django + Tailwind CSS = 💚
https://django-tailwind.readthedocs.io
MIT License
1.45k stars 89 forks source link

django-tailwind should not have a hard dependency on pip #146

Closed apollo13 closed 1 year ago

apollo13 commented 2 years ago

Currently django-tailwind imports pip: https://github.com/timonweb/django-tailwind/blob/7f9edb8dc0653d949dd27a369298b0093cb8db27/src/tailwind/utils.py#L4

Since install_package is only needed to install cookiecutter if not found I think it would be best to move the import into install_package itself. This helps with systems where pip is not installed in a venv.

What do you think?