Skip to content

Commit

Permalink
Correct PyPi install (#16)
Browse files Browse the repository at this point in the history
* Correct PyPi

* Fix string
  • Loading branch information
mahaloz authored Apr 16, 2023
1 parent 9d5573d commit 5491001
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Utilize OpenAI to improve your decompilation experience in most modern decompile
## Installation
Clone down this repo and pip install and use the daila installer:
```bash
pip3 install -e . && daila --install
pip3 install -e . && dailalib --install
```

Depending on your decompiler, this will attempt to copy the script files into your decompiler and install
Expand Down
1 change: 0 additions & 1 deletion daila/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions dailalib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1.0"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from daila.interfaces.openai_interface import OpenAIInterface
from dailalib.interfaces.openai_interface import OpenAIInterface
from xmlrpc.server import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
from functools import wraps

Expand Down
2 changes: 1 addition & 1 deletion daila/installer.py → dailalib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DAILAInstaller(Installer):
def __init__(self):
super().__init__(targets=("ida", "ghidra", "binja"))
self.plugins_path = Path(
pkg_resources.resource_filename("daila", f"plugins")
pkg_resources.resource_filename("dailalib", f"plugins")
)

def display_prologue(self):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/daila_binja.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from PySide6.QtWidgets import QProgressDialog


from daila.interfaces.openai_interface import OpenAIInterface, addr_ctx_when_none
from dailalib.interfaces.openai_interface import OpenAIInterface, addr_ctx_when_none


def with_loading_popup(func):
Expand Down
2 changes: 1 addition & 1 deletion plugins/daila_ghidra.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __exit__(self, *args, **kwargs):
self._stop_server()

def _start_server(self):
self.server_proc = subprocess.Popen(["python3", "-m", "daila", "-server"])
self.server_proc = subprocess.Popen(["python3", "-m", "dailalib", "-server"])
sleep(3)
self.server = xmlrpclib.ServerProxy(self.proxy_host)

Expand Down
6 changes: 3 additions & 3 deletions plugins/daila_ida.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import idc
from PyQt5.QtWidgets import QProgressDialog

from daila.interfaces.openai_interface import OpenAIInterface
from dailalib.interfaces.openai_interface import OpenAIInterface

controller: Optional["IDADAILAController"] = None

Expand Down Expand Up @@ -80,7 +80,7 @@ class DAILAPlugin(idaapi.plugin_t):
help = "DAILA Help"
wanted_name = "Identify the current function you are looking at!"

id_action_name = "daila:identify_function"
id_action_name = "dailalib:identify_function"
id_menu_path = "Edit/DAILA/Explain function"

def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -226,4 +226,4 @@ def identify_current_function(self):

@execute_write
def explain_current_function(self, **kwargs):
return super().explain_current_function(**kwargs)
return super().explain_current_function(**kwargs)
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = DAILA
version = attr: daila.__version__
version = attr: dailalib.__version__
url = https://github.com/mahaloz/DAILA
classifiers =
License :: OSI Approved :: BSD License
Expand Down Expand Up @@ -28,4 +28,4 @@ daila =

[options.entry_points]
console_scripts =
daila = daila.__main__:main
daila = dailalib.__main__:main
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def _copy_plugins():
local_plugins = Path("plugins").absolute()
daila_loc = Path("daila").absolute()
daila_loc = Path("dailalib").absolute()
pip_e_plugins = daila_loc.joinpath("plugins").absolute()

# clean the install location of symlink or folder
Expand All @@ -32,7 +32,7 @@ def _copy_plugins():

# copy if symlinking is not available on target system
try:
shutil.copytree("plugins", "daila/plugins")
shutil.copytree("plugins", "dailalib/plugins")
except:
pass

Expand Down

0 comments on commit 5491001

Please sign in to comment.