Skip to content

Commit b9ca8ea

Browse files
committed
upip: Honor MICROPYPATH environment variable.
1 parent 7c444be commit b9ca8ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

upip/metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
srctype = micropython-lib
22
type = module
3-
version = 0.5.8
3+
version = 0.5.9
44
author = Paul Sokolovsky
55
extra_modules = upip_ffilib, upip_errno, upip_gzip, upip_os, upip_os_path, upip_stat, upip_utarfile
66
desc = Simple package manager for MicroPython.

upip/setup.py

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

77

88
setup(name='micropython-upip',
9-
version='0.5.8',
9+
version='0.5.9',
1010
description='Simple package manager for MicroPython.',
1111
long_description='Simple package manager for MicroPython, targetting to be self-hosted (but not yet there). Compatible only with packages without custom setup.py code.',
1212
url='https://github.com/micropython/micropython/issues/405',

upip/upip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def main():
226226
fatal("Unknown/unsupported option: " + opt)
227227

228228
if install_path is None:
229-
install_path = DEFAULT_MICROPYPATH
229+
install_path = os.getenv("MICROPYPATH", DEFAULT_MICROPYPATH)
230230

231231
install_path = install_path.split(":", 1)[0]
232232

0 commit comments

Comments
 (0)