Skip to content

Commit 74ea810

Browse files
committed
INSTALL.md: add notes about common installation issues
Signed-off-by: Elijah Newren <[email protected]>
1 parent 9282a33 commit 74ea810

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

INSTALL.md

+39-8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ no interest in doing so); https://repology.org tracks who packages
1717
these versions.
1818

1919

20+
# Notes for Windows Users
21+
22+
It seems that the default python on Windows is not fully functional,
23+
and windows might not allow executing python scripts by default. See
24+
[issue 124](https://github.com/newren/git-filter-repo/issues/124),
25+
[issue 36](https://github.com/newren/git-filter-repo/issues/36), and
26+
[this git mailing list
27+
thread](https://lore.kernel.org/git/[email protected]/)
28+
for details and workarounds. I believe that Windows users installing
29+
git-filter-repo via Scoop will be okay, but those using a manual
30+
installation or pip install may run into these issues.
31+
32+
2033
# Manual Installation
2134

2235
filter-repo only consists of a few files that need to be installed:
@@ -70,14 +83,26 @@ filter-repo only consists of a few files that need to be installed:
7083
instructions regardless of whether the html version of help is
7184
installed.
7285

73-
So, installation might look something like
74-
```
75-
cp -a git-filter-repo $(git --exec-path)
76-
cp -a git-filter-repo.1 $(git --man-path)/man1
77-
cp -a git-filter-repo.html $(git --html-path)
78-
ln -s $(git --exec-path)/git-filter-repo \
79-
$(python -c "import site; print(site.getsitepackages()[-1])")/git_filter_repo.py
80-
```
86+
So, installation might look something like the following:
87+
88+
1. If you don't have the necessary documentation files (because you
89+
are installing from a clone of filter-repo instead of from a
90+
tarball) then you can first run:
91+
92+
`make snag_docs`
93+
94+
(which just copies the generated documentation files from the
95+
`docs` branch)
96+
97+
2. Run the following
98+
99+
```
100+
cp -a git-filter-repo $(git --exec-path)
101+
cp -a git-filter-repo.1 $(git --man-path)/man1
102+
cp -a git-filter-repo.html $(git --html-path)
103+
ln -s $(git --exec-path)/git-filter-repo \
104+
$(python -c "import site; print(site.getsitepackages()[-1])")/git_filter_repo.py
105+
```
81106

82107
# Installation via [pip](https://pip.pypa.io/)
83108

@@ -86,6 +111,12 @@ to run:
86111

87112
$ pip3 install git-filter-repo
88113

114+
However, the place where pip places that package might not be in your
115+
$PATH (thus requiring you to manually update your $PATH afterwards),
116+
and on windows the pip install might not take care of python-specific
117+
issues for you (see "Notes for Windows Users", above). As such,
118+
installation via package managers is recommended instead.
119+
89120

90121
# Installation via Makefile
91122

0 commit comments

Comments
 (0)