Skip to content

Commit b52fcf9

Browse files
authored
Install debugpy and add support for Python 3.9 (#50)
1 parent 59ac208 commit b52fcf9

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

python/Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM python:2.7 as python27
2-
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
2+
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy
33

44
FROM python:3.7 as python37
5-
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
5+
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy
66

77
FROM python:3.8 as python38
8-
RUN PYTHONUSERBASE=/ptvsd pip install --user ptvsd
8+
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy
9+
10+
FROM python:3.9 as python39
11+
RUN PYTHONUSERBASE=/dbgpy pip install --user ptvsd debugpy
912

1013
# Now populate the duct-tape image with the language runtime debugging support files
1114
# The debian image is about 95MB bigger
@@ -14,6 +17,7 @@ FROM busybox
1417
COPY install.sh /
1518
CMD ["/bin/sh", "/install.sh"]
1619
WORKDIR /duct-tape
17-
COPY --from=python27 /ptvsd/ python/
18-
COPY --from=python37 /ptvsd/ python/
19-
COPY --from=python38 /ptvsd/ python/
20+
COPY --from=python27 /dbgpy/ python/
21+
COPY --from=python37 /dbgpy/ python/
22+
COPY --from=python38 /dbgpy/ python/
23+
COPY --from=python39 /dbgpy/ python/

test/structure-tests-python.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ schemaVersion: 2.0.0
33
fileExistenceTests:
44
- name: 'ptvsd for python 2.7'
55
path: '/duct-tape/python/lib/python2.7/site-packages/ptvsd/__init__.py'
6+
- name: 'debugpy for python 2.7'
7+
path: '/duct-tape/python/lib/python2.7/site-packages/debugpy/__init__.py'
68
- name: 'ptvsd for python 3.7'
79
path: '/duct-tape/python/lib/python3.7/site-packages/ptvsd/__init__.py'
10+
- name: 'debugpy for python 3.7'
11+
path: '/duct-tape/python/lib/python3.7/site-packages/debugpy/__init__.py'
812
- name: 'ptvsd for python 3.8'
913
path: '/duct-tape/python/lib/python3.8/site-packages/ptvsd/__init__.py'
14+
- name: 'debugpy for python 3.8'
15+
path: '/duct-tape/python/lib/python3.8/site-packages/debugpy/__init__.py'
16+
- name: 'ptvsd for python 3.9'
17+
path: '/duct-tape/python/lib/python3.9/site-packages/ptvsd/__init__.py'
18+
- name: 'debugpy for python 3.9'
19+
path: '/duct-tape/python/lib/python3.9/site-packages/debugpy/__init__.py'
1020

1121
commandTests:
1222
- name: "run with no /dbg should fail"

0 commit comments

Comments
 (0)