Skip to content Skip to sidebar Skip to footer

Django's Manage.py Shows Old Commands

I am coding my own whl-package and after creating some new management-commands and deleting some old ones I was pretty happy with myself. Except after building my wheel-package (wi

Solution 1:

Tada. Found it. TL;DR: run setup.py clean --all bdist_wheel.


So when the commands were gone after uninstalling the package, it must be something in the package. I confirmed that by doing
> strings project-2.0b3-py2.py3-none-any.whl | grep old_command

which indeed found traces of my old command. So they got built into my package from somewhere. I moved to my dev-box and ran

> find . -iname *old_command*
./build/lib/project/management/commands/old_command.py

While I had already deleted the file from my project, it was obviously still in the build-directory. A simple clean will not get rid of it, but clean --all does. Conveniently, it can be combined to

setup.py clean --all bdist_wheel

Post a Comment for "Django's Manage.py Shows Old Commands"