mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:13:32 +03:00
tests: remove python_dependencies for smbserver from our tree
Users of the SMB tests will have to install impacket manually. Reasoning: our in-tree version of impacket was quite outdated and only compatible with Python 2 which is already end-of-life. Upgrading to Python 3 and a compatible impacket version would require to import additional Python-only and CPython-extension dependencies. This would have hindered portability enormously. Closes #5094
This commit is contained in:
parent
67f3f6cff1
commit
4be2560e01
17 changed files with 14 additions and 18137 deletions
|
|
@ -36,9 +36,13 @@ else:
|
|||
# Import our curl test data helper
|
||||
import curl_test_data
|
||||
|
||||
# This saves us having to set up the PYTHONPATH explicitly
|
||||
deps_dir = os.path.join(os.path.dirname(__file__), "python_dependencies")
|
||||
sys.path.append(deps_dir)
|
||||
# impacket needs to be installed in the Python environment
|
||||
try:
|
||||
import impacket
|
||||
except ImportError:
|
||||
sys.stderr.write('Python package impacket needs to be installed!\n')
|
||||
sys.stderr.write('Use pip or your package manager to install it.\n')
|
||||
sys.exit(1)
|
||||
from impacket import smbserver as imp_smbserver
|
||||
from impacket import smb as imp_smb
|
||||
from impacket.nt_errors import (STATUS_ACCESS_DENIED, STATUS_SUCCESS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue