Skip to content

Commit 03a3a04

Browse files
committed
Merge branch 'master' into 'master'
QPR-12436: update setup.py Closes QPR-12436 See merge request qs/oreswig-github!9
2 parents dc8437f + 90a1a9f commit 03a3a04

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

OREAnalytics-SWIG/Python/setup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,17 @@ def finalize_options(self):
151151
target = "Debug"
152152

153153
self.library_dirs.append(self.validate_path(BOOST_LIB))
154-
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'QuantLib', 'ql', target)))
155-
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'QuantExt', 'qle', target)))
156-
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'OREData', 'ored', target)))
157-
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'OREAnalytics', 'orea', target)))
154+
155+
try:
156+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'QuantLib', 'ql', target)))
157+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'QuantExt', 'qle', target)))
158+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'OREData', 'ored', target)))
159+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'OREAnalytics', 'orea', target)))
160+
except:
161+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'QuantLib', 'ql')))
162+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'QuantExt', 'qle')))
163+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'OREData', 'ored')))
164+
self.library_dirs.append(self.validate_path(os.path.join(ORE_DIR, 'build', 'OREAnalytics', 'orea')))
158165

159166
#if 'INCLUDE' in os.environ:
160167
# dirs = [dir for dir in os.environ['INCLUDE'].split(';')]

0 commit comments

Comments
 (0)