Skip to content

Commit 7cde16d

Browse files
committed
Remove LibraryRelinker tool
1 parent 2c16675 commit 7cde16d

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

robotpy_build/tool.py

-44
Original file line numberDiff line numberDiff line change
@@ -199,49 +199,6 @@ def run(self, args):
199199
)
200200

201201

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-
245202
class PlatformInfo:
246203
@classmethod
247204
def add_subparser(cls, parent_parser, subparsers):
@@ -439,7 +396,6 @@ def main():
439396
GenCreator,
440397
HeaderScanner,
441398
ImportCreator,
442-
LibraryRelinker,
443399
PlatformInfo,
444400
MavenParser,
445401
):

0 commit comments

Comments
 (0)