@@ -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