There was an error while loading. Please reload this page.
1 parent 8241d11 commit 4968a4cCopy full SHA for 4968a4c
1 file changed
hatch_build.py
@@ -9,6 +9,9 @@ class GitignoreBuildHook(BuildHookInterface):
9
def initialize(self, _version, _build_data):
10
"""Temporarily modify .gitignore so data is included when the sdist is installed using pip. """
11
12
+ # On Windows .gitignore.tmp may already exist and cause an error, when calling rename later.
13
+ Path('.gitignore.tmp').unlink(missing_ok=True)
14
+
15
gi = Path('.gitignore')
16
if gi.exists():
17
cleaned = gi.read_text().replace('geonamescache/data/', '')
0 commit comments