mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipalib: remove hard dependency on ipapython
Hard-code the path to /bin/false in SubprocessError doc string. Remove ipaplatform dependency from ipalib's setup.py and add it as optional installer dependency to ipalib's and ipaclient's setup.py. https://fedorahosted.org/freeipa/ticket/6474 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
977050c66b
commit
d43b57d2ce
@@ -55,6 +55,7 @@ if __name__ == '__main__':
|
||||
"wheel",
|
||||
],
|
||||
extra_requires={
|
||||
"ipaclient.install": ["ipaplatform"],
|
||||
"otptoken_yubikey": ["yubico", "usb"]
|
||||
}
|
||||
)
|
||||
|
||||
@@ -108,7 +108,6 @@ import six
|
||||
|
||||
from ipalib.text import ngettext as ungettext
|
||||
from ipalib import messages
|
||||
from ipaplatform.paths import paths # pylint: disable=unused-import
|
||||
|
||||
|
||||
class PrivateError(Exception):
|
||||
@@ -151,7 +150,7 @@ class SubprocessError(PrivateError):
|
||||
The exit code of the sub-process is available via the ``returncode``
|
||||
instance attribute. For example:
|
||||
|
||||
>>> e = SubprocessError(returncode=1, argv=(paths.BIN_FALSE,))
|
||||
>>> e = SubprocessError(returncode=1, argv=('/bin/false',))
|
||||
>>> e.returncode
|
||||
1
|
||||
>>> e.argv # argv is also available
|
||||
|
||||
@@ -37,7 +37,6 @@ if __name__ == '__main__':
|
||||
"ipalib.install",
|
||||
],
|
||||
install_requires=[
|
||||
"ipaplatform",
|
||||
"ipapython",
|
||||
"netaddr",
|
||||
"pyasn1",
|
||||
@@ -47,4 +46,7 @@ if __name__ == '__main__':
|
||||
setup_requires=[
|
||||
"wheel",
|
||||
],
|
||||
extras_require={
|
||||
"ipalib.install": ["ipaplatform"],
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user