Skip to content

Commit 66870b6

Browse files
sebastichobu
authored andcommitted
Fix clean target. (#32)
`PDALVERSION` is not set when executing `setup.py clean`. Ref: #24
1 parent 2056460 commit 66870b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def get_pdal_config(option):
156156
if os.name != 'nt':
157157
extra_compile_args += ['-g','-O0']
158158

159-
if PDALVERSION < Version('2.0.0'):
159+
if PDALVERSION is not None and PDALVERSION < Version('2.0.0'):
160160
raise Exception("PDAL version '%s' is not compatible with PDAL Python library version '%s'"%(PDALVERSION, module_version))
161161

162162

0 commit comments

Comments
 (0)