Skip to content

Commit

Permalink
Merge pull request #117 from doronz88/feature/optional_lief
Browse files Browse the repository at this point in the history
client: make lief an optional dependency
  • Loading branch information
doronz88 authored Mar 24, 2022
2 parents 1827376 + af930fd commit 6b1a01c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/rpcclient/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ dataclasses; python_version<"3.7"
pygments
objc_types_decoder
pycrashreport>=0.0.8
lief
6 changes: 5 additions & 1 deletion src/rpcclient/rpcclient/darwin/darwin_lief.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import logging
import plistlib
import struct
from typing import Mapping

import lief
try:
import lief
except ImportError:
logging.warning('failed to import lief. install seperately to use LIEF features')

from rpcclient.common import path_to_str
from rpcclient.darwin.consts import kSecCodeMagicEntitlement
Expand Down
6 changes: 5 additions & 1 deletion src/rpcclient/rpcclient/lief.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import logging
from collections import namedtuple
from typing import Mapping

import lief
try:
import lief
except ImportError:
logging.warning('failed to import lief. install seperately to use LIEF features')

from rpcclient.common import path_to_str

Expand Down

0 comments on commit 6b1a01c

Please sign in to comment.