@@ -90,7 +90,7 @@ def requirements(self):
9090 self .requires ("fmt/9.1.0" )
9191 self .requires ("inja/3.4.0" )
9292 self .requires ("nlohmann_json/3.11.2" )
93- self .requires ("incbin/cci.20211107" ),
93+ self .requires ("incbin/cci.20211107" ),
9494 self .requires ("spdlog/1.11.0" )
9595 self .requires ("eigen/3.4.0" )
9696 self .requires ("cli11/2.3.2" , private = True )
@@ -133,7 +133,6 @@ def generate(self):
133133 tc .cache_variables ["CLOE_ENGINE_WITH_SERVER" ] = self .options .engine_server
134134 tc .cache_variables ["CLOE_ENGINE_WITH_LRDB" ] = self .options .engine_lrdb
135135 tc .cache_variables ["CLOE_PYTHON_API" ] = self .options .python_api
136- tc .cache_variables ["PYTHON_BINDINGS_LOCAL_DEV" ] = not self .in_local_cache
137136 tc .generate ()
138137
139138 def build (self ):
@@ -202,23 +201,25 @@ def package_info(self):
202201 pydir = os .path .join (self .build_folder , "lib/cloe/python" )
203202 py_path = os .path .join (self .source_folder , "python/python_api" )
204203 libdir = os .path .join (self .build_folder , "lib" )
204+ cloe_lib_path = libdir
205205 else :
206206 self .cpp_info .builddirs .append (os .path .join ("lib" , "cmake" , "cloe" ))
207207 bindir = os .path .join (self .package_folder , "bin" )
208208 luadir = os .path .join (self .package_folder , "lib/cloe/lua" )
209209 pydir = os .path .join (self .package_folder , "lib/cloe/python" )
210210 py_path = pydir
211+ cloe_lib_path = os .path .join (self .package_folder , "lib/cloe/python/cloe" )
211212 libdir = None
212213
213214 self .output .info (f"Appending PATH environment variable: { bindir } " )
214215 self .runenv_info .prepend_path ("PATH" , bindir )
215216 self .output .info (f"Appending CLOE_LUA_PATH environment variable: { luadir } " )
216217 self .runenv_info .prepend_path ("CLOE_LUA_PATH" , luadir )
217218 if libdir is not None :
218- #TODO
219219 self .output .info (f"Appending LD_LIBRARY_PATH environment variable: { libdir } " )
220220 self .runenv_info .append_path ("LD_LIBRARY_PATH" , libdir )
221221 if self .options .python_api :
222- self .output .info (f"Appending PYHTONPATH and BASIC_CLOE_PYTHON_BINDINGS environment variables: { pydir } " )
222+ self .output .info (f"Appending PYHTONPATH and CLOE_PYTHON_BINDINGS environment variables: { pydir } " )
223223 self .runenv_info .prepend_path ("PYTHONPATH" , str (py_path ))
224- self .runenv_info .prepend_path ("BASIC_CLOE_PYTHON_BINDINGS" , str (pydir ))
224+ self .runenv_info .prepend_path ("PYTHONPATH" , str (cloe_lib_path ))
225+ self .runenv_info .prepend_path ("CLOE_PYTHON_BINDINGS" , str (pydir ))
0 commit comments