Search code examples
pythoninstallationdistutils

setup.py install leaving files where they are


I'm working with a custom package that I'd like to modify while I'm using it. When I run python setup.py install --user, it copies the files to another directory --- so everytime I make a change, I have to re-install with -f. Is there a way to install without making a copy of the .py files --- so that I can keep modifying them in place?


Solution

  • Do an "editable install":

    pip install --user -e .
    

    This will add the current directory to your python path instead of copying the files into the packages directory.