git-filter-repo icon indicating copy to clipboard operation
git-filter-repo copied to clipboard

Setup.py throws on windows unless running as administrator

Open CervEdin opened this issue 4 years ago • 2 comments

This isn't exactly a severe issue but running setup.py on windows throws unless running as an administrator since creating a symlink on Windows requires administrator privileges'.

Possible solutions:

  • Add documenation to run as administrator
  • Change the symlink to hardlink on Windows

Not sure exactly sure what the symlink is for, so I'm not sure what the best fix is.

Thanks for an awesome script, I love it.

CervEdin avatar May 03 '21 12:05 CervEdin

I'm glad you are enjoying the script.

setup.py exists solely for uploading git-filter-repo to PyPI, which only someone doing releases should run. Someone else contributed it (and I have to admit I don't really understand all the setup and pypi stuff). I presume copies would work as well as symlinks.

Out of curiosity, what are you trying to use setup.py for? It's not referenced in the installation documentation anywhere.

newren avatar Jun 09 '21 19:06 newren

Actually I think I just assumed this was the reason the install failed when running a non-elevated shell. I believe I was using scoop.

CervEdin avatar Jun 11 '21 10:06 CervEdin