@@ -199,49 +199,6 @@ def run(self, args):
199
199
)
200
200
201
201
202
- class LibraryRelinker :
203
- @classmethod
204
- def add_subparser (cls , parent_parser , subparsers ):
205
- parser = subparsers .add_parser (
206
- "relink-libraries" ,
207
- help = "Relink libraries to new paths" ,
208
- parents = [parent_parser ],
209
- )
210
- parser .add_argument ("libraries" , help = "Folder with libraries - Ex: ./libs" )
211
- parser .add_argument (
212
- "dependents" ,
213
- help = "Folder with dependents - Ex: ../../venv/libs/site-packages" ,
214
- )
215
- return parser
216
-
217
- def run (self , args ):
218
- raise NotImplementedError (
219
- "tool needs to be fixed -- just reinstall the offending package instead"
220
- )
221
- # Essentially a macos check
222
- try :
223
- import delocate
224
- except :
225
- print ("relink-libraries is only designed to work on macOS." )
226
- print ("If you are on macOS, then:" )
227
- print ("Error, The following module is required to run this tool: delocate" )
228
- exit (1 )
229
-
230
- from . import relink_libs
231
- from os .path import abspath
232
-
233
- dependencies = relink_libs .get_build_dependencies (args .dependents )
234
- libs = relink_libs .find_all_libs (args .libraries )
235
- for key in libs :
236
- libs [key ] = "@" + abspath (libs [key ]) + "@"
237
-
238
- print ("Format | dependent : old path to lib -> new path to lib" )
239
- # We are only using abs paths so build_path doesn't matter
240
- relink_libs .redirect_links (
241
- "." , libs , dependencies , auto_detect = False , supress_errors = True
242
- )
243
-
244
-
245
202
class PlatformInfo :
246
203
@classmethod
247
204
def add_subparser (cls , parent_parser , subparsers ):
@@ -439,7 +396,6 @@ def main():
439
396
GenCreator ,
440
397
HeaderScanner ,
441
398
ImportCreator ,
442
- LibraryRelinker ,
443
399
PlatformInfo ,
444
400
MavenParser ,
445
401
):
0 commit comments