Skip to content

Commit

Permalink
[SSH] Remove CTYPES dependency (#7765)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthiebaut10 authored Jul 19, 2024
1 parent 085f640 commit 852fdaf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 116 deletions.
4 changes: 4 additions & 0 deletions src/ssh/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Release History
===============
2.0.5
-----
* Remove ctypes dependency from RDP feature

2.0.4
-----
* Install Arc SSH Proxy from MAR
Expand Down
113 changes: 0 additions & 113 deletions src/ssh/azext_ssh/_process_helper.py

This file was deleted.

5 changes: 3 additions & 2 deletions src/ssh/azext_ssh/rdp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ def start_rdp_connection(ssh_info, delete_keys, delete_cert):


def call_rdp(local_port):
from . import _process_helper
if platform.system() == 'Windows':
print_styled_text((Style.SUCCESS, "Launching Remote Desktop Connection"))
print_styled_text((Style.IMPORTANT, "To close this session, close the Remote Desktop Connection window."))
command = [_get_rdp_path(), f"/v:localhost:{local_port}"]
_process_helper.launch_and_wait(command)
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# process.wait() doesn't work correctly when 32bit python is installed on 64bit machines
_ = process.communicate()


def is_local_port_open(local_port):
Expand Down
2 changes: 1 addition & 1 deletion src/ssh/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from setuptools import setup, find_packages

VERSION = "2.0.4"
VERSION = "2.0.5"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 852fdaf

Please sign in to comment.