Skip to content

Commit f8e30a0

Browse files
committed
Merge branch 'release/v1.2.0'
2 parents dec480e + 26aa3e8 commit f8e30a0

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

get-platformio.py

Lines changed: 5 additions & 3 deletions
Large diffs are not rendered by default.

pioinstaller/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import logging.config
1616

17-
VERSION = (1, 1, 3)
17+
VERSION = (1, 2, 0)
1818
__version__ = ".".join([str(s) for s in VERSION])
1919

2020
__title__ = "platformio-installer"

pioinstaller/pack/template.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727

2828
def create_temp_dir():
2929
try:
30-
cur_dir = os.path.dirname(os.path.realpath(__file__))
31-
tmp_dir = tempfile.mkdtemp(dir=cur_dir, prefix=".piocore-installer-")
30+
parent_dir = os.getenv(
31+
"PLATFORMIO_INSTALLER_TMPDIR", os.path.dirname(os.path.realpath(__file__))
32+
)
33+
tmp_dir = tempfile.mkdtemp(dir=parent_dir, prefix=".piocore-installer-")
3234
testscript_path = os.path.join(tmp_dir, "test.py")
3335
with open(testscript_path, "w") as fp:
3436
fp.write("print(1)")

pioinstaller/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def check():
138138
raise exception.IncompatiblePythonError("Conda is not supported")
139139

140140
try:
141+
__import__("ensurepip")
141142
__import__("venv")
142143
# __import__("distutils.command")
143144
except ImportError:

0 commit comments

Comments
 (0)