mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
modify setup.py
dirty hack for offline install: search for the egg file in the current folder
This commit is contained in:
+8
-2
@@ -61,8 +61,14 @@ class FridaPrebuiltExt(build_ext):
|
||||
os_version=os_version
|
||||
)
|
||||
|
||||
print('downloading prebuilt extension from', egg_url)
|
||||
egg_data = urlopen(egg_url).read()
|
||||
try:
|
||||
print('downloading prebuilt extension from', egg_url)
|
||||
egg_data = urlopen(egg_url).read()
|
||||
except:
|
||||
egg_url = re.sub(r".*/f/frida/(.*)","file:///\g<1>",egg_url)
|
||||
print('trying to get prebuilt extension from the current folder', egg_url)
|
||||
egg_data = urlopen(egg_url).read()
|
||||
|
||||
egg_file = BytesIO(egg_data)
|
||||
|
||||
print('extracting prebuilt extension')
|
||||
|
||||
Reference in New Issue
Block a user