Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
e9f88048
Commit
e9f88048
authored
Nov 26, 2021
by
Christian Decker
Committed by
Damien George
Dec 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/upip.py: Support == to specify exact package version.
parent
d9d67ade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tools/upip.py
tools/upip.py
+6
-2
No files found.
tools/upip.py
View file @
e9f88048
...
...
@@ -192,9 +192,13 @@ def fatal(msg, exc=None):
def
install_pkg
(
pkg_spec
,
install_path
):
data
=
get_pkg_metadata
(
pkg_spec
)
package
=
pkg_spec
.
split
(
"=="
)
data
=
get_pkg_metadata
(
package
[
0
])
latest_ver
=
data
[
"info"
][
"version"
]
if
len
(
package
)
==
1
:
latest_ver
=
data
[
"info"
][
"version"
]
else
:
latest_ver
=
package
[
1
]
packages
=
data
[
"releases"
][
latest_ver
]
del
data
gc
.
collect
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment