File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1414
1515import 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"
Original file line number Diff line number Diff line change 2727
2828def 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)" )
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments