Skip to content

Commit 8eb0a4a

Browse files
committed
Force SVN header file creation in old GEOS versions
1 parent e39fe68 commit 8eb0a4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/basemap/utils/GeosLibrary.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ def extract(self, overwrite=True):
139139
for line in lines:
140140
fd.write(line.replace(oldtext, newtext).encode())
141141

142+
# The SVN revision file is not created on the fly before 3.6.0.
143+
svn_hfile = os.path.join(zipfold, "geos_svn_revision.h")
144+
if not os.path.exists(svn_hfile):
145+
with io.open(svn_hfile, "wb") as fd:
146+
text = "#define GEOS_SVN_REVISION 0"
147+
fd.write(text.encode())
148+
142149
def build(self, installdir=None, njobs=1):
143150
"""Build and install GEOS from source."""
144151

0 commit comments

Comments
 (0)